class Babl::Nodes::InternalValue
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, …)
Public Instance Methods
dependencies()
click to toggle source
:nocov:
# File lib/babl/nodes/internal_value.rb, line 22 def dependencies Utils::Hash::EMPTY end
optimize()
click to toggle source
# File lib/babl/nodes/internal_value.rb, line 34 def optimize self end
pinned_dependencies()
click to toggle source
# File lib/babl/nodes/internal_value.rb, line 26 def pinned_dependencies Utils::Hash::EMPTY end
render(frame)
click to toggle source
# File lib/babl/nodes/internal_value.rb, line 30 def render(frame) frame.object end
schema()
click to toggle source
:nocov:
# File lib/babl/nodes/internal_value.rb, line 17 def schema raise Errors::InvalidTemplate, 'Internal nodes cannot be documented' end