Method: WSDL::XMLSchema::SimpleContent#parse_element

Defined in:
lib/wsdl/xmlSchema/simpleContent.rb

#parse_element(element) ⇒ Object



43
44
45
46
47
48
49
50
51
52
# File 'lib/wsdl/xmlSchema/simpleContent.rb', line 43

def parse_element(element)
  case element
  when RestrictionName
    @restriction = SimpleRestriction.new
    @restriction
  when ExtensionName
    @extension = SimpleExtension.new
    @extension
  end
end