Class: Framer::Parser
- Inherits:
-
Object
- Object
- Framer::Parser
- Defined in:
- lib/framer/parser.rb
Instance Attribute Summary collapse
-
#tree ⇒ Object
readonly
Returns the value of attribute tree.
Instance Method Summary collapse
-
#initialize(path) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(path) ⇒ Parser
Returns a new instance of Parser.
7 8 9 |
# File 'lib/framer/parser.rb', line 7 def initialize(path) @tree = YAML.load_file path end |
Instance Attribute Details
#tree ⇒ Object (readonly)
Returns the value of attribute tree.
5 6 7 |
# File 'lib/framer/parser.rb', line 5 def tree @tree end |