Class: Steep::AST::MethodType::Block
- Inherits:
-
Object
- Object
- Steep::AST::MethodType::Block
- Defined in:
- lib/steep/ast/method_type.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#optional ⇒ Object
readonly
Returns the value of attribute optional.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(location:, params:, return_type:, optional:) ⇒ Block
constructor
A new instance of Block.
Constructor Details
#initialize(location:, params:, return_type:, optional:) ⇒ Block
Returns a new instance of Block.
95 96 97 98 99 100 |
# File 'lib/steep/ast/method_type.rb', line 95 def initialize(location:, params:, return_type:, optional:) @location = location @params = params @return_type = return_type @optional = optional end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
90 91 92 |
# File 'lib/steep/ast/method_type.rb', line 90 def location @location end |
#optional ⇒ Object (readonly)
Returns the value of attribute optional.
93 94 95 |
# File 'lib/steep/ast/method_type.rb', line 93 def optional @optional end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
91 92 93 |
# File 'lib/steep/ast/method_type.rb', line 91 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
92 93 94 |
# File 'lib/steep/ast/method_type.rb', line 92 def return_type @return_type end |