Class: T12n::SchemaBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/t12n/schema_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_blocksObject (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_attrsObject (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

#t12nObject (readonly)

Returns the value of attribute t12n.



11
12
13
# File 'lib/t12n/schema_builder.rb', line 11

def t12n
  @t12n
end