Class: Cel::Bool

Inherits:
Literal
  • Object
show all
Defined in:
lib/cel/ast/elements.rb

Instance Attribute Summary

Attributes inherited from Literal

#type, #value

Instance Method Summary collapse

Methods inherited from Literal

#==, to_cel_type, #to_ruby_type

Constructor Details

#initialize(value) ⇒ Bool

Returns a new instance of Bool.



219
220
221
# File 'lib/cel/ast/elements.rb', line 219

def initialize(value)
  super(:bool, value)
end

Instance Method Details

#!Object



231
232
233
# File 'lib/cel/ast/elements.rb', line 231

def !
  Bool.new(super)
end