Class: RubyCop::Ruby::Alias
Instance Attribute Summary collapse
-
#new_name ⇒ Object
readonly
Returns the value of attribute new_name.
-
#old_name ⇒ Object
readonly
Returns the value of attribute old_name.
Instance Method Summary collapse
-
#initialize(new_name, old_name) ⇒ Alias
constructor
A new instance of Alias.
Methods inherited from Node
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_name ⇒ Object (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_name ⇒ Object (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 |