Class: Pincers::Support::Configuration
- Inherits:
-
Object
- Object
- Pincers::Support::Configuration
- Defined in:
- lib/pincers/support/configuration.rb
Defined Under Namespace
Classes: Option
Constant Summary collapse
- FIELDS =
[ [:wait_timeout, 10.0], [:wait_interval, 0.2], [:advanced_mode, false], # webdriver defaults [:webdriver_bridge, :firefox], [:webdriver_options, {}] ]
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
- #set(_options) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 |
# File 'lib/pincers/support/configuration.rb', line 28 def initialize reset end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
26 27 28 |
# File 'lib/pincers/support/configuration.rb', line 26 def values @values end |
Instance Method Details
#reset ⇒ Object
36 37 38 |
# File 'lib/pincers/support/configuration.rb', line 36 def reset @values = Hash[FIELDS] end |
#set(_options) ⇒ Object
32 33 34 |
# File 'lib/pincers/support/configuration.rb', line 32 def set() @values.merge! end |