module LogCabin::Modules::Chdir
Change directory before running module
Public Instance Methods
chdir_helper() { || ... }
click to toggle source
# File lib/prospectus/helpers/chdir.rb, line 6 def chdir_helper @dir ||= '.' Dir.chdir(@dir) { yield } end
Private Instance Methods
dir(value)
click to toggle source
# File lib/prospectus/helpers/chdir.rb, line 13 def dir(value) @dir = value end