Class: ScaffoldParser::Scaffolders::XSD::Parser::Handlers::Elements

Inherits:
Object
  • Object
show all
Includes:
OrderElements
Defined in:
lib/scaffold_parser/scaffolders/xsd/parser/handlers/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from OrderElements

#all, #choice, #sequence

Constructor Details

#initialize(elements = []) ⇒ Elements

Returns a new instance of Elements.



11
12
13
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/elements.rb', line 11

def initialize(elements = [])
  @elements = elements
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements.



9
10
11
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/elements.rb', line 9

def elements
  @elements
end

Instance Method Details

#schema(_) ⇒ Object



15
16
17
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/elements.rb', line 15

def schema(_)
  STACK
end