Class: Steep::AST::MethodType
- Inherits:
-
Object
- Object
- Steep::AST::MethodType
- Defined in:
- lib/steep/ast/method_type.rb
Defined Under Namespace
Modules: Params Classes: Block, Super
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
-
#type_params ⇒ Object
readonly
Returns the value of attribute type_params.
Instance Method Summary collapse
-
#initialize(location:, type_params:, params:, block:, return_type:) ⇒ MethodType
constructor
A new instance of MethodType.
Constructor Details
#initialize(location:, type_params:, params:, block:, return_type:) ⇒ MethodType
Returns a new instance of MethodType.
109 110 111 112 113 114 115 |
# File 'lib/steep/ast/method_type.rb', line 109 def initialize(location:, type_params:, params:, block:, return_type:) @location = location @type_params = type_params @params = params @block = block @return_type = return_type end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
106 107 108 |
# File 'lib/steep/ast/method_type.rb', line 106 def block @block end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
103 104 105 |
# File 'lib/steep/ast/method_type.rb', line 103 def location @location end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
105 106 107 |
# File 'lib/steep/ast/method_type.rb', line 105 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
107 108 109 |
# File 'lib/steep/ast/method_type.rb', line 107 def return_type @return_type end |
#type_params ⇒ Object (readonly)
Returns the value of attribute type_params.
104 105 106 |
# File 'lib/steep/ast/method_type.rb', line 104 def type_params @type_params end |