Class: Steep::AST::Signature::Interface::Method
- Inherits:
-
Object
- Object
- Steep::AST::Signature::Interface::Method
- Defined in:
- lib/steep/ast/signature/interface.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#types ⇒ Object
readonly
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(location:, name:, types:) ⇒ Method
constructor
A new instance of Method.
Constructor Details
#initialize(location:, name:, types:) ⇒ Method
Returns a new instance of Method.
10 11 12 13 14 |
# File 'lib/steep/ast/signature/interface.rb', line 10 def initialize(location:, name:, types:) @location = location @name = name @types = types end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/steep/ast/signature/interface.rb', line 6 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/steep/ast/signature/interface.rb', line 7 def name @name end |
#types ⇒ Object (readonly)
Returns the value of attribute types.
8 9 10 |
# File 'lib/steep/ast/signature/interface.rb', line 8 def types @types end |