Class: Babl::Nodes::InternalValue
- Inherits:
-
Object
- Object
- Babl::Nodes::InternalValue
- Includes:
- Singleton
- Defined in:
- lib/babl/nodes/internal_value.rb
Overview
This Node plays a role similar to TerminalValue, but it does not perform any type checking on the produced object, which is allowed to be any Ruby object, including non-serializable objects.
It is used when the output is not rendered (conditions in #switch, values passed to block in #with, …)
Instance Method Summary collapse
Instance Method Details
#dependencies ⇒ Object
18 19 20 |
# File 'lib/babl/nodes/internal_value.rb', line 18 def dependencies {} end |
#pinned_dependencies ⇒ Object
22 23 24 |
# File 'lib/babl/nodes/internal_value.rb', line 22 def pinned_dependencies {} end |
#render(ctx) ⇒ Object
26 27 28 |
# File 'lib/babl/nodes/internal_value.rb', line 26 def render(ctx) ctx.object end |
#schema ⇒ Object
14 15 16 |
# File 'lib/babl/nodes/internal_value.rb', line 14 def schema raise Errors::InvalidTemplate, 'Internal nodes cannot be documented' end |