Method: DataActive::Parser#end

Defined in:
lib/data_active/parser.rb

#end(name) ⇒ Object



98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/data_active/parser.rb', line 98

def end(name)
  case @stack.last.class.name
    when 'DataActive::Entity'
      end_entity(name)

    when 'DataActive::Attribute'
      end_attribute(name)

    else
      raise "Unhandled class '#{@stack.last.class.name}'"
  end

  self
end