Class: ComfyConf::Parser
- Inherits:
-
Object
- Object
- ComfyConf::Parser
- Defined in:
- lib/comfy_conf/parser.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#pathname ⇒ Object
readonly
Returns the value of attribute pathname.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(pathname, &block) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(pathname, &block) ⇒ Parser
Returns a new instance of Parser.
8 9 10 11 |
# File 'lib/comfy_conf/parser.rb', line 8 def initialize(pathname, &block) @pathname = Pathname.new(pathname) @definition = Definition.new('root', &block) end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
12 13 14 |
# File 'lib/comfy_conf/parser.rb', line 12 def definition @definition end |
#pathname ⇒ Object (readonly)
Returns the value of attribute pathname.
12 13 14 |
# File 'lib/comfy_conf/parser.rb', line 12 def pathname @pathname end |