Class: Framer::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/framer/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#treeObject (readonly)

Returns the value of attribute tree.



5
6
7
# File 'lib/framer/parser.rb', line 5

def tree
  @tree
end