Class: ScaffoldParser::Scaffolders::XSD::Parser::Handlers::ElementRef
- Inherits:
-
Object
- Object
- ScaffoldParser::Scaffolders::XSD::Parser::Handlers::ElementRef
- Defined in:
- lib/scaffold_parser/scaffolders/xsd/parser/handlers/element_ref.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ ElementRef
constructor
A new instance of ElementRef.
- #to_submodel_method(ref_map) ⇒ Object
Constructor Details
#initialize(source) ⇒ ElementRef
Returns a new instance of ElementRef.
7 8 9 |
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/element_ref.rb', line 7 def initialize(source) @source = source end |
Instance Method Details
#to_submodel_method(ref_map) ⇒ Object
11 12 13 14 15 |
# File 'lib/scaffold_parser/scaffolders/xsd/parser/handlers/element_ref.rb', line 11 def to_submodel_method(ref_map) name = ref_map[@source.ref].split(':').map(&:classify).join('::') SubmodelMethod.new(@source, name) end |