class Goggles::Configuration
Stores configuration information for runtime.
The ‘directory` setting must
be configured.
The ‘browsers` and `sizes` settings can be extended through `Goggles.each` as arguments.
@see Goggles.each
@see Goggles.configure
Attributes
browsers[RW]
color[RW]
directory[R]
fuzzing[RW]
groups[RW]
sizes[RW]
Public Class Methods
new()
click to toggle source
# File lib/goggles/configuration.rb, line 17 def initialize @browsers = [] @sizes = [] @groups = [] @directory = "" @color = "blue" @fuzzing = "20%" end
Public Instance Methods
directory=(path)
click to toggle source
Ensures the configured path exists, but otherwise acts as a normal
attr_accessor. Path argument must be an absolute path.
@param path [String] directory path
# File lib/goggles/configuration.rb, line 32 def directory=(path) @directory = path FileUtils.mkdir_p path unless path.nil? or path.empty? end