Class: Ruby::Rego::NullValue
Overview
Represents a null value.
Constant Summary collapse
- TYPE_NAME =
"null"
Instance Attribute Summary
Attributes inherited from Value
Instance Method Summary collapse
-
#initialize ⇒ NullValue
constructor
Create a null value.
-
#truthy? ⇒ Boolean
Null is falsy.
Methods inherited from Value
#==, #fetch_reference, from_ruby, #hash, #object_key, #to_ruby, #type_name, #undefined?
Constructor Details
#initialize ⇒ NullValue
Create a null value.
187 188 189 |
# File 'lib/ruby/rego/value.rb', line 187 def initialize super(nil) end |
Instance Method Details
#truthy? ⇒ Boolean
Null is falsy.
194 195 196 |
# File 'lib/ruby/rego/value.rb', line 194 def truthy? false end |