Class: RubyCop::Ruby::Alias

Inherits:
Node
  • Object
show all
Defined in:
lib/ruby_cop/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.



22
23
24
25
# File 'lib/ruby_cop/ruby/call.rb', line 22

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.



27
28
29
# File 'lib/ruby_cop/ruby/call.rb', line 27

def new_name
  @new_name
end

#old_nameObject (readonly)

Returns the value of attribute old_name.



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

def old_name
  @old_name
end