Class: Steep::AST::MethodType::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/ast/method_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, params:, return_type:) ⇒ Block

Returns a new instance of Block.



94
95
96
97
98
# File 'lib/steep/ast/method_type.rb', line 94

def initialize(location:, params:, return_type:)
  @location = location
  @params = params
  @return_type = return_type
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



90
91
92
# File 'lib/steep/ast/method_type.rb', line 90

def location
  @location
end

#paramsObject (readonly)

Returns the value of attribute params.



91
92
93
# File 'lib/steep/ast/method_type.rb', line 91

def params
  @params
end

#return_typeObject (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