Class: Steep::AST::Signature::Members::MethodAlias

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, new_name:, original_name:) ⇒ MethodAlias

Returns a new instance of MethodAlias.



106
107
108
109
110
# File 'lib/steep/ast/signature/members.rb', line 106

def initialize(location:, new_name:, original_name:)
  @location = location
  @new_name = new_name
  @original_name = original_name
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



102
103
104
# File 'lib/steep/ast/signature/members.rb', line 102

def location
  @location
end

#new_nameObject (readonly)

Returns the value of attribute new_name.



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

def new_name
  @new_name
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



104
105
106
# File 'lib/steep/ast/signature/members.rb', line 104

def original_name
  @original_name
end