Class: Steep::AST::Signature::Alias

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, name:, params:, type:) ⇒ Alias

Returns a new instance of Alias.



10
11
12
13
14
15
# File 'lib/steep/ast/signature/alias.rb', line 10

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params.



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

def params
  @params
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/steep/ast/signature/alias.rb', line 8

def type
  @type
end