Class: Babl::Nodes::IsNull

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/babl/nodes/is_null.rb

Instance Method Summary collapse

Instance Method Details

#dependenciesObject



15
16
17
# File 'lib/babl/nodes/is_null.rb', line 15

def dependencies
    Utils::Hash::EMPTY
end

#optimizeObject



27
28
29
# File 'lib/babl/nodes/is_null.rb', line 27

def optimize
    self
end

#pinned_dependenciesObject



19
20
21
# File 'lib/babl/nodes/is_null.rb', line 19

def pinned_dependencies
    Utils::Hash::EMPTY
end

#render(frame) ⇒ Object



23
24
25
# File 'lib/babl/nodes/is_null.rb', line 23

def render(frame)
    ::NilClass === frame.object
end

#schemaObject



11
12
13
# File 'lib/babl/nodes/is_null.rb', line 11

def schema
    Schema::Typed::BOOLEAN
end