Class: Steep::AST::Signature::Const

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, name:, type:) ⇒ Const

Returns a new instance of Const.



9
10
11
12
13
# File 'lib/steep/ast/signature/const.rb', line 9

def initialize(location:, name:, type:)
  @location = location
  @name = name
  @type = type
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/steep/ast/signature/const.rb', line 6

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/steep/ast/signature/const.rb', line 7

def type
  @type
end