Class: Cukedep::Sandbox
- Inherits:
-
Object
- Object
- Cukedep::Sandbox
- Defined in:
- lib/cukedep/sandbox.rb
Overview
A context in which hook block codes are run.
Instance Attribute Summary collapse
-
#base_dir ⇒ Object
readonly
Returns the value of attribute base_dir.
-
#proj_dir ⇒ Object
readonly
Returns the value of attribute proj_dir.
Instance Method Summary collapse
-
#initialize(theBaseDir, theProjectDir) ⇒ Sandbox
constructor
A new instance of Sandbox.
Constructor Details
#initialize(theBaseDir, theProjectDir) ⇒ Sandbox
Returns a new instance of Sandbox.
9 10 11 12 |
# File 'lib/cukedep/sandbox.rb', line 9 def initialize(theBaseDir, theProjectDir) @base_dir = theBaseDir.dup.freeze @proj_dir = theProjectDir.dup.freeze end |
Instance Attribute Details
#base_dir ⇒ Object (readonly)
Returns the value of attribute base_dir.
6 7 8 |
# File 'lib/cukedep/sandbox.rb', line 6 def base_dir @base_dir end |
#proj_dir ⇒ Object (readonly)
Returns the value of attribute proj_dir.
7 8 9 |
# File 'lib/cukedep/sandbox.rb', line 7 def proj_dir @proj_dir end |