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