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:, 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

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#optionalObject (readonly)

Returns the value of attribute optional.



93
94
95
# File 'lib/steep/ast/method_type.rb', line 93

def optional
  @optional
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