Class: Babl::Nodes::Nav
- Inherits:
-
Object
- Object
- Babl::Nodes::Nav
- Defined in:
- lib/babl/nodes/nav.rb
Instance Method Summary collapse
Instance Method Details
#render(frame) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/babl/nodes/nav.rb', line 36 def render(frame) value = begin object = frame.object ::Hash === object ? object.fetch(property) : object.send(property) rescue StandardError => e raise Errors::RenderingError, "#{e.}\n" + frame.formatted_stack(property), e.backtrace end frame.move_forward(value, property) do |new_frame| node.render(new_frame) end end |