module PathMapper::Helper::Debug

Public Instance Methods

dry_run() click to toggle source
# File lib/path_mapper/helper/debug.rb, line 4
def dry_run
  Thread.current[:dry_run]
end
dry_run=(state) click to toggle source
# File lib/path_mapper/helper/debug.rb, line 8
def dry_run=(state)
  Thread.current[:dry_run] = state
end
with_dry_run() { |old| ... } click to toggle source
# File lib/path_mapper/helper/debug.rb, line 12
def with_dry_run
  old = self.dry_run
  yield old
ensure
  self.dry_run = old
end