Class: Phantomrb::Configuration
- Inherits:
-
Object
- Object
- Phantomrb::Configuration
- Defined in:
- lib/phantomrb/configuration.rb
Instance Attribute Summary collapse
-
#executable ⇒ Object
readonly
Returns the value of attribute executable.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #option(key, value) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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
#executable ⇒ Object (readonly)
Returns the value of attribute executable.
3 4 5 |
# File 'lib/phantomrb/configuration.rb', line 3 def executable @executable end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/phantomrb/configuration.rb', line 3 def @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 |