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
31 32 33 |
# File 'lib/webgen/configuration.rb', line 31 def default @default end |
#validator ⇒ Object
Returns the value of attribute validator
31 32 33 |
# File 'lib/webgen/configuration.rb', line 31 def validator @validator end |
Instance Method Details
#==(other) ⇒ Object
:nodoc:
36 37 38 |
# File 'lib/webgen/configuration.rb', line 36 def ==(other) #:nodoc: self.default == other.default end |
#dupped_default ⇒ Object
:nodoc:
32 33 34 |
# File 'lib/webgen/configuration.rb', line 32 def dupped_default #:nodoc: default.dup rescue default end |
#marshal_dump ⇒ Object
:nodoc:
40 41 42 |
# File 'lib/webgen/configuration.rb', line 40 def marshal_dump #:nodoc: self.default end |
#marshal_load(data) ⇒ Object
:nodoc:
44 45 46 |
# File 'lib/webgen/configuration.rb', line 44 def marshal_load(data) #:nodoc: self.default = data end |