class RuboCop::AST::AliasNode

A node extension for `alias` nodes. This will be used in place of a plain node when the builder constructs the AST, making its methods available to all `alias` nodes within RuboCop.

Public Instance Methods

new_identifier() click to toggle source

Returns the new identifier as specified by the `alias`.

@return [SymbolNode] the new identifier

# File lib/rubocop/ast/node/alias_node.rb, line 19
def new_identifier
  node_parts[0]
end
old_identifier() click to toggle source

Returns the old identifier as specified by the `alias`.

@return [SymbolNode] the old identifier

# File lib/rubocop/ast/node/alias_node.rb, line 12
def old_identifier
  node_parts[1]
end