Class: StrongYAML::ConfigString
- Inherits:
-
Object
- Object
- StrongYAML::ConfigString
- Defined in:
- lib/schema/config_string.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, default: nil) ⇒ ConfigString
constructor
A new instance of ConfigString.
Constructor Details
#initialize(name, default: nil) ⇒ ConfigString
Returns a new instance of ConfigString.
5 6 7 8 |
# File 'lib/schema/config_string.rb', line 5 def initialize(name, default: nil) @name = name @default = default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
3 4 5 |
# File 'lib/schema/config_string.rb', line 3 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/schema/config_string.rb', line 3 def name @name end |