Class: Profig::Item
- Inherits:
-
Object
- Object
- Profig::Item
- Defined in:
- lib/profig/config.rb
Overview
An individual piece of configuration
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(name, opts) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(name, opts) ⇒ Item
11 12 13 14 15 |
# File 'lib/profig/config.rb', line 11 def initialize(name, opts) @name = name opts = {} if opts.nil? @opts = opts end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/profig/config.rb', line 8 def name @name end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
9 10 11 |
# File 'lib/profig/config.rb', line 9 def opts @opts end |