Class: Rucoa::Rbs::MethodDefinitionMapper
- Inherits:
-
Object
- Object
- Rucoa::Rbs::MethodDefinitionMapper
- Defined in:
- lib/rucoa/rbs/method_definition_mapper.rb
Defined Under Namespace
Classes: MethodTypeMapper
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Rucoa::Definitions::MethodDefinition
-
#initialize(declaration:, method_definition:) ⇒ MethodDefinitionMapper
constructor
A new instance of MethodDefinitionMapper.
Constructor Details
#initialize(declaration:, method_definition:) ⇒ MethodDefinitionMapper
Returns a new instance of MethodDefinitionMapper.
23 24 25 26 27 28 29 |
# File 'lib/rucoa/rbs/method_definition_mapper.rb', line 23 def initialize( declaration:, method_definition: ) @declaration = declaration @method_definition = method_definition end |
Class Method Details
.call(declaration:, method_definition:) ⇒ Rucoa::Definitions::MethodDefinition
10 11 12 13 14 15 16 17 18 |
# File 'lib/rucoa/rbs/method_definition_mapper.rb', line 10 def call( declaration:, method_definition: ) new( declaration: declaration, method_definition: method_definition ).call end |
Instance Method Details
#call ⇒ Rucoa::Definitions::MethodDefinition
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/rucoa/rbs/method_definition_mapper.rb', line 32 def call Definitions::MethodDefinition.new( description: description, kind: kind, location: location, method_name: method_name, namespace: namespace, types: types ) end |