Class: Steep::AST::Signature::Interface
- Inherits:
-
Object
- Object
- Steep::AST::Signature::Interface
- Defined in:
- lib/steep/ast/signature/interface.rb
Defined Under Namespace
Classes: Method
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(location:, name:, params:, methods:) ⇒ Interface
constructor
A new instance of Interface.
Constructor Details
#initialize(location:, name:, params:, methods:) ⇒ Interface
Returns a new instance of Interface.
22 23 24 25 26 27 |
# File 'lib/steep/ast/signature/interface.rb', line 22 def initialize(location:, name:, params:, methods:) @location = location @name = name @params = params @methods = methods end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
17 18 19 |
# File 'lib/steep/ast/signature/interface.rb', line 17 def location @location end |
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
20 21 22 |
# File 'lib/steep/ast/signature/interface.rb', line 20 def methods @methods end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/steep/ast/signature/interface.rb', line 18 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
19 20 21 |
# File 'lib/steep/ast/signature/interface.rb', line 19 def params @params end |