Class: Steep::TypeConstruction::MethodContext
- Inherits:
-
Object
- Object
- Steep::TypeConstruction::MethodContext
- Defined in:
- lib/steep/type_construction.rb
Instance Attribute Summary collapse
-
#constructor ⇒ Object
readonly
Returns the value of attribute constructor.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#method_type ⇒ Object
readonly
Returns the value of attribute method_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
- #block_type ⇒ Object
-
#initialize(name:, method:, method_type:, return_type:, constructor:) ⇒ MethodContext
constructor
A new instance of MethodContext.
- #super_method ⇒ Object
Constructor Details
#initialize(name:, method:, method_type:, return_type:, constructor:) ⇒ MethodContext
Returns a new instance of MethodContext.
10 11 12 13 14 15 16 |
# File 'lib/steep/type_construction.rb', line 10 def initialize(name:, method:, method_type:, return_type:, constructor:) @name = name @method = method @return_type = return_type @method_type = method_type @constructor = constructor end |
Instance Attribute Details
#constructor ⇒ Object (readonly)
Returns the value of attribute constructor.
8 9 10 |
# File 'lib/steep/type_construction.rb', line 8 def constructor @constructor end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
5 6 7 |
# File 'lib/steep/type_construction.rb', line 5 def method @method end |
#method_type ⇒ Object (readonly)
Returns the value of attribute method_type.
6 7 8 |
# File 'lib/steep/type_construction.rb', line 6 def method_type @method_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/steep/type_construction.rb', line 4 def name @name end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
7 8 9 |
# File 'lib/steep/type_construction.rb', line 7 def return_type @return_type end |
Instance Method Details
#block_type ⇒ Object
18 19 20 |
# File 'lib/steep/type_construction.rb', line 18 def block_type method_type&.block end |
#super_method ⇒ Object
22 23 24 |
# File 'lib/steep/type_construction.rb', line 22 def super_method method&.super_method end |