Class: Steep::AST::MethodType

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

Defined Under Namespace

Modules: Params Classes: Block, Super

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.



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

#blockObject (readonly)

Returns the value of attribute block.



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

def block
  @block
end

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#paramsObject (readonly)

Returns the value of attribute params.



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

def params
  @params
end

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