Method: Ore::Project#within
- Defined in:
- lib/ore/project.rb
#within(sub_dir = nil) { ... } ⇒ Object
Executes code within the project.
326 327 328 329 330 331 332 333 334 |
# File 'lib/ore/project.rb', line 326 def within(sub_dir=nil,&block) dir = if sub_dir @root.join(sub_dir) else @root end Dir.chdir(dir,&block) end |