Class: Rucoa::Rbs::ConstantDefinitionMapper
- Inherits:
-
Object
- Object
- Rucoa::Rbs::ConstantDefinitionMapper
- Defined in:
- lib/rucoa/rbs/constant_definition_mapper.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Rucoa::Definitions::ConstantDefinition
-
#initialize(declaration:) ⇒ ConstantDefinitionMapper
constructor
A new instance of ConstantDefinitionMapper.
Constructor Details
#initialize(declaration:) ⇒ ConstantDefinitionMapper
Returns a new instance of ConstantDefinitionMapper.
15 16 17 |
# File 'lib/rucoa/rbs/constant_definition_mapper.rb', line 15 def initialize(declaration:) @declaration = declaration end |
Class Method Details
.call(declaration:) ⇒ Rucoa::Definitions::ConstantDefinition
9 10 11 |
# File 'lib/rucoa/rbs/constant_definition_mapper.rb', line 9 def call(declaration:) new(declaration: declaration).call end |
Instance Method Details
#call ⇒ Rucoa::Definitions::ConstantDefinition
20 21 22 23 24 25 26 |
# File 'lib/rucoa/rbs/constant_definition_mapper.rb', line 20 def call Definitions::ConstantDefinition.new( description: description, location: location, qualified_name: qualified_name ) end |