Class: T12n::SchemaBuilder
- Inherits:
-
Object
- Object
- T12n::SchemaBuilder
- Defined in:
- lib/t12n/schema_builder.rb
Instance Attribute Summary collapse
-
#context_blocks ⇒ Object
readonly
Returns the value of attribute context_blocks.
-
#schema_attrs ⇒ Object
readonly
Returns the value of attribute schema_attrs.
-
#t12n ⇒ Object
readonly
Returns the value of attribute t12n.
Instance Method Summary collapse
-
#initialize(t12n) ⇒ SchemaBuilder
constructor
A new instance of SchemaBuilder.
Constructor Details
#initialize(t12n) ⇒ SchemaBuilder
Returns a new instance of SchemaBuilder.
5 6 7 8 9 |
# File 'lib/t12n/schema_builder.rb', line 5 def initialize(t12n) @t12n = t12n @schema_attrs = [] @context_blocks = [] end |
Instance Attribute Details
#context_blocks ⇒ Object (readonly)
Returns the value of attribute context_blocks.
11 12 13 |
# File 'lib/t12n/schema_builder.rb', line 11 def context_blocks @context_blocks end |
#schema_attrs ⇒ Object (readonly)
Returns the value of attribute schema_attrs.
11 12 13 |
# File 'lib/t12n/schema_builder.rb', line 11 def schema_attrs @schema_attrs end |
#t12n ⇒ Object (readonly)
Returns the value of attribute t12n.
11 12 13 |
# File 'lib/t12n/schema_builder.rb', line 11 def t12n @t12n end |