Method: DataActive::Parser#create_child_entity
- Defined in:
- lib/data_active/parser.rb
#create_child_entity(name) ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/data_active/parser.rb', line 76 def create_child_entity(name) entity = DataActive::Entity.new(name, , !@started_parsing) if @stack.last.tag_name == name.pluralize entity.belongs_to = @stack.last.belongs_to else entity.belongs_to = @stack.last end @stack << entity end |