Class: Umwelt::Node::Build
- Inherits:
-
Object
- Object
- Umwelt::Node::Build
- Extended by:
- Forwardable
- Defined in:
- lib/umwelt/node/build.rb
Instance Method Summary collapse
- #call(frag) ⇒ Object
-
#initialize(tree) ⇒ Build
constructor
A new instance of Build.
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 |