Method: Tap::Declarations#node
- Defined in:
- lib/tap/declarations.rb
#node(var = nil, &node) ⇒ Object
Returns a new node that executes block on call.
15 16 17 18 19 |
# File 'lib/tap/declarations.rb', line 15 def node(var=nil, &node) # :yields: *args def node.joins; @joins ||= []; end app.set(var, node) if var node end |