Class: Phantomrb::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/phantomrb/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
# File 'lib/phantomrb/configuration.rb', line 5

def initialize
  @options = {}
  @executable = 'phantomjs'
end

Instance Attribute Details

#executableObject (readonly)

Returns the value of attribute executable.



3
4
5
# File 'lib/phantomrb/configuration.rb', line 3

def executable
  @executable
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/phantomrb/configuration.rb', line 3

def options
  @options
end

Instance Method Details

#option(key, value) ⇒ Object



10
11
12
# File 'lib/phantomrb/configuration.rb', line 10

def option(key, value)
  @options[key] = value
end