Class: ComfyConf::Data
- Inherits:
-
Object
- Object
- ComfyConf::Data
- Defined in:
- lib/comfy_conf/data.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize(prefix, definition, data) ⇒ Data
constructor
A new instance of Data.
- #name ⇒ Object
Constructor Details
#initialize(prefix, definition, data) ⇒ Data
Returns a new instance of Data.
3 4 5 6 |
# File 'lib/comfy_conf/data.rb', line 3 def initialize(prefix, definition, data) @prefix, @definition, @data = prefix, definition, data || Hash.new load end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/comfy_conf/data.rb', line 7 def data @data end |
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
7 8 9 |
# File 'lib/comfy_conf/data.rb', line 7 def definition @definition end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
7 8 9 |
# File 'lib/comfy_conf/data.rb', line 7 def prefix @prefix end |
Instance Method Details
#name ⇒ Object
9 10 11 |
# File 'lib/comfy_conf/data.rb', line 9 def name definition.name end |