Class: Chrome::BuildContext

Inherits:
Object
  • Object
show all
Defined in:
app/drivers/chrome/build_context.rb

Instance Method Summary collapse

Constructor Details

#initializeBuildContext

Returns a new instance of BuildContext.



5
6
7
8
9
10
11
12
# File 'app/drivers/chrome/build_context.rb', line 5

def initialize
  @debug = (ENV['FLOK_ENV'] == "DEBUG")
  @release = (ENV['FLOK_ENV'] == "RELEASE")
  @spec = (ENV['FLOK_CHROME_SPEC'] == "TRUE")
  Dir.chdir File.join(File.dirname(__FILE__), "../../../") do
    @mods = Flok::Platform.mods(ENV['FLOK_ENV'])
  end
end

Instance Method Details

#get_bindingObject



14
15
16
# File 'app/drivers/chrome/build_context.rb', line 14

def get_binding
  binding
end