Class: Cukedep::Sandbox

Inherits:
Object
  • Object
show all
Defined in:
lib/cukedep/sandbox.rb

Overview

A context in which hook block codes are run.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dirObject (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_dirObject (readonly)

Returns the value of attribute proj_dir.



7
8
9
# File 'lib/cukedep/sandbox.rb', line 7

def proj_dir
  @proj_dir
end