Class: Goggles::Configuration
- Inherits:
-
Object
- Object
- Goggles::Configuration
- Defined in:
- lib/goggles/configuration.rb
Overview
Stores configuration information for runtime.
The ‘directory` setting must
be configured.
The ‘browsers` and `sizes` settings can be extended through `Goggles.each` as arguments.
Instance Attribute Summary collapse
-
#browsers ⇒ Object
Returns the value of attribute browsers.
-
#color ⇒ Object
Returns the value of attribute color.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#fuzzing ⇒ Object
Returns the value of attribute fuzzing.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#sizes ⇒ Object
Returns the value of attribute sizes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 |
# File 'lib/goggles/configuration.rb', line 17 def initialize @browsers = [] @sizes = [] @groups = [] @directory = "" @color = "blue" @fuzzing = "20%" end |
Instance Attribute Details
#browsers ⇒ Object
Returns the value of attribute browsers.
14 15 16 |
# File 'lib/goggles/configuration.rb', line 14 def browsers @browsers end |
#color ⇒ Object
Returns the value of attribute color.
14 15 16 |
# File 'lib/goggles/configuration.rb', line 14 def color @color end |
#directory ⇒ Object
Returns the value of attribute directory.
15 16 17 |
# File 'lib/goggles/configuration.rb', line 15 def directory @directory end |
#fuzzing ⇒ Object
Returns the value of attribute fuzzing.
14 15 16 |
# File 'lib/goggles/configuration.rb', line 14 def fuzzing @fuzzing end |
#groups ⇒ Object
Returns the value of attribute groups.
14 15 16 |
# File 'lib/goggles/configuration.rb', line 14 def groups @groups end |
#sizes ⇒ Object
Returns the value of attribute sizes.
14 15 16 |
# File 'lib/goggles/configuration.rb', line 14 def sizes @sizes end |