Class: RBS::DefinitionBuilder::MethodBuilder::Methods::Definition
- Inherits:
-
Struct
- Object
- Struct
- RBS::DefinitionBuilder::MethodBuilder::Methods::Definition
- Defined in:
- lib/rbs/definition_builder/method_builder.rb
Instance Attribute Summary collapse
-
#accessibilities ⇒ Object
Returns the value of attribute accessibilities.
-
#name ⇒ Object
Returns the value of attribute name.
-
#originals ⇒ Object
Returns the value of attribute originals.
-
#overloads ⇒ Object
Returns the value of attribute overloads.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#accessibilities ⇒ Object
Returns the value of attribute accessibilities
5 6 7 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 5 def accessibilities @accessibilities end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 5 def name @name end |
#originals ⇒ Object
Returns the value of attribute originals
5 6 7 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 5 def originals @originals end |
#overloads ⇒ Object
Returns the value of attribute overloads
5 6 7 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 5 def overloads @overloads end |
#type ⇒ Object
Returns the value of attribute type
5 6 7 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 5 def type @type end |
Class Method Details
.empty(name:, type:) ⇒ Object
14 15 16 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 14 def self.empty(name:, type:) new(type: type, name: name, originals: [], overloads: [], accessibilities: []) end |
Instance Method Details
#accessibility ⇒ Object
10 11 12 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 10 def accessibility accessibilities[0] end |
#original ⇒ Object
6 7 8 |
# File 'lib/rbs/definition_builder/method_builder.rb', line 6 def original originals[0] end |