class InDir
Public Class Methods
new(path, err=true)
click to toggle source
# File lib/ruby_make_script/utils.rb, line 89 def initialize(path, err=true) @path = path @err = err end
Public Instance Methods
enter()
click to toggle source
# File lib/ruby_make_script/utils.rb, line 94 def enter @orig = Dir.pwd if @err cd @path else cd? @path end end
exit()
click to toggle source
# File lib/ruby_make_script/utils.rb, line 103 def exit if @err cd @orig else cd? @orig end end