Class: Umwelt::Node::Build

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/umwelt/node/build.rb

Instance Method Summary collapse

Constructor Details

#initialize(tree) ⇒ Build

Returns a new instance of Build.



8
9
10
# File 'lib/umwelt/node/build.rb', line 8

def initialize(tree)
  @tree = tree
end

Instance Method Details

#call(frag) ⇒ Object



12
13
14
# File 'lib/umwelt/node/build.rb', line 12

def call(frag)
  node_klass(frag.kind).new(attributes(frag))
end