Class: Steep::AST::MethodType

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

Defined Under Namespace

Modules: Params Classes: Block

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, type_params:, params:, block:, return_type:) ⇒ MethodType

Returns a new instance of MethodType.



107
108
109
110
111
112
113
# File 'lib/steep/ast/method_type.rb', line 107

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

#blockObject (readonly)

Returns the value of attribute block.



104
105
106
# File 'lib/steep/ast/method_type.rb', line 104

def block
  @block
end

#locationObject (readonly)

Returns the value of attribute location.



101
102
103
# File 'lib/steep/ast/method_type.rb', line 101

def location
  @location
end

#paramsObject (readonly)

Returns the value of attribute params.



103
104
105
# File 'lib/steep/ast/method_type.rb', line 103

def params
  @params
end

#return_typeObject (readonly)

Returns the value of attribute return_type.



105
106
107
# File 'lib/steep/ast/method_type.rb', line 105

def return_type
  @return_type
end

#type_paramsObject (readonly)

Returns the value of attribute type_params.



102
103
104
# File 'lib/steep/ast/method_type.rb', line 102

def type_params
  @type_params
end