class RenameGem::Renamer::Context

Attributes

from[R]
path[R]
pwd[R]
to[R]

Public Class Methods

new(pwd, path, from, to) click to toggle source
# File lib/rename_gem/renamer/context.rb, line 8
def initialize(pwd, path, from, to)
  @pwd = pwd
  @path = path
  @from = from
  @to = to
end

Public Instance Methods

using(new_path) click to toggle source
# File lib/rename_gem/renamer/context.rb, line 15
def using(new_path)
  self.class.new(pwd, new_path, from, to)
end