Class: Slinky::ConfigReader::ConfigEntry
- Inherits:
-
Object
- Object
- Slinky::ConfigReader::ConfigEntry
- Defined in:
- lib/slinky/config_reader.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, default) ⇒ ConfigEntry
constructor
A new instance of ConfigEntry.
Constructor Details
#initialize(name, type, default) ⇒ ConfigEntry
Returns a new instance of ConfigEntry.
18 19 20 21 22 |
# File 'lib/slinky/config_reader.rb', line 18 def initialize(name, type, default) @name = name @type = type @default = default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
17 18 19 |
# File 'lib/slinky/config_reader.rb', line 17 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/slinky/config_reader.rb', line 17 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
17 18 19 |
# File 'lib/slinky/config_reader.rb', line 17 def type @type end |