Class: ScaffoldParser::Scaffolders::XSD::Parser::Handlers::Sequence
- Inherits:
-
Object
- Object
- ScaffoldParser::Scaffolders::XSD::Parser::Handlers::Sequence
- Includes:
- OrderElements
- Defined in:
- lib/scaffold_parser/scaffolders/xsd/parser/handlers/sequence.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
Returns the value of attribute elements.
Instance Method Summary collapse
- #complex_type(source) ⇒ Object
- #extension(source) ⇒ Object
- #group(source) ⇒ Object
-
#initialize(elements = []) ⇒ Sequence
constructor
A new instance of Sequence.
Methods included from OrderElements
Constructor Details
#initialize(elements = []) ⇒ Sequence
Returns a new instance of Sequence.
10 11 12 |
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/sequence.rb', line 10 def initialize(elements = []) @elements = [*elements] end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
8 9 10 |
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/sequence.rb', line 8 def elements @elements end |
Instance Method Details
#complex_type(source) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/sequence.rb', line 14 def complex_type(source) if source.has_name? STACK.push Klass.new(source, elements) end ComplexType.new elements end |