Class: Steep::AST::TypeParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location: nil, variables:) ⇒ TypeParams

Returns a new instance of TypeParams.



7
8
9
10
# File 'lib/steep/ast/type_params.rb', line 7

def initialize(location: nil, variables:)
  @location = location
  @variables = variables
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



4
5
6
# File 'lib/steep/ast/type_params.rb', line 4

def location
  @location
end

#variablesObject (readonly)

Returns the value of attribute variables.



5
6
7
# File 'lib/steep/ast/type_params.rb', line 5

def variables
  @variables
end