Class: FigNewton::Node

Inherits:
Object
  • Object
show all
Includes:
Missing
Defined in:
lib/fig_newton/node.rb

Instance Method Summary collapse

Methods included from Missing

#method_missing, #read_file

Constructor Details

#initialize(yml) ⇒ Node

Returns a new instance of Node.



7
8
9
# File 'lib/fig_newton/node.rb', line 7

def initialize(yml)
  @yml = yml
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FigNewton::Missing

Instance Method Details

#to_hashObject



11
12
13
# File 'lib/fig_newton/node.rb', line 11

def to_hash
  @yml
end