Class: Rubycop::Analyzer::Ruby::Alias

Inherits:
Node
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

Constructor Details

#initialize(new_name, old_name) ⇒ Alias

Returns a new instance of Alias.



23
24
25
26
# File 'lib/rubycop/analyzer/ruby/call.rb', line 23

def initialize(new_name, old_name)
  @new_name = new_name
  @old_name = old_name
end

Instance Attribute Details

#new_nameObject (readonly)

Returns the value of attribute new_name.



28
29
30
# File 'lib/rubycop/analyzer/ruby/call.rb', line 28

def new_name
  @new_name
end

#old_nameObject (readonly)

Returns the value of attribute old_name.



29
30
31
# File 'lib/rubycop/analyzer/ruby/call.rb', line 29

def old_name
  @old_name
end