Class: Webgen::Configuration::Option
- Inherits:
-
Struct
- Object
- Struct
- Webgen::Configuration::Option
- Defined in:
- lib/webgen/configuration.rb
Overview
Struct class for storing a configuration option.
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#validator ⇒ Object
Returns the value of attribute validator.
Instance Method Summary collapse
-
#==(other) ⇒ Object
:nodoc:.
-
#dupped_default ⇒ Object
:nodoc:.
-
#marshal_dump ⇒ Object
:nodoc:.
-
#marshal_load(data) ⇒ Object
:nodoc:.
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
32 33 34 |
# File 'lib/webgen/configuration.rb', line 32 def default @default end |
#validator ⇒ Object
Returns the value of attribute validator
32 33 34 |
# File 'lib/webgen/configuration.rb', line 32 def validator @validator end |
Instance Method Details
#==(other) ⇒ Object
:nodoc:
37 38 39 |
# File 'lib/webgen/configuration.rb', line 37 def ==(other) #:nodoc: self.default == other.default end |
#dupped_default ⇒ Object
:nodoc:
33 34 35 |
# File 'lib/webgen/configuration.rb', line 33 def dupped_default #:nodoc: default.dup rescue default end |
#marshal_dump ⇒ Object
:nodoc:
41 42 43 |
# File 'lib/webgen/configuration.rb', line 41 def marshal_dump #:nodoc: self.default end |
#marshal_load(data) ⇒ Object
:nodoc:
45 46 47 |
# File 'lib/webgen/configuration.rb', line 45 def marshal_load(data) #:nodoc: self.default = data end |