Class: Babl::Nodes::Constant

Inherits:
Object
  • Object
show all
Defined in:
lib/babl/nodes/constant.rb

Constant Summary collapse

NULL =
new(nil, Schema::Primitive::NULL)
TRUE =
new(true, Schema::Primitive::TRUE)
FALSE =
new(false, Schema::Primitive::FALSE)

Instance Method Summary collapse

Instance Method Details

#dependenciesObject



16
17
18
# File 'lib/babl/nodes/constant.rb', line 16

def dependencies
    Utils::Hash::EMPTY
end

#optimizeObject



24
25
26
# File 'lib/babl/nodes/constant.rb', line 24

def optimize
    self
end

#pinned_dependenciesObject



20
21
22
# File 'lib/babl/nodes/constant.rb', line 20

def pinned_dependencies
    Utils::Hash::EMPTY
end

#render(_frame) ⇒ Object



12
13
14
# File 'lib/babl/nodes/constant.rb', line 12

def render(_frame)
    value
end