Class: AlgebraDB::Value::Bool
- Inherits:
-
AlgebraDB::Value
- Object
- Struct
- AlgebraDB::Value
- AlgebraDB::Value::Bool
- Defined in:
- lib/algebra_db/value/bool.rb
Overview
Represents a Postgres boolean value.
Defined Under Namespace
Classes: Decoder
Instance Attribute Summary
Attributes inherited from AlgebraDB::Value
Instance Method Summary collapse
Methods inherited from AlgebraDB::Value
#render_syntax, #to_select_item
Methods included from Operations::Definition
Instance Method Details
#and(other) ⇒ Object
6 7 8 9 10 |
# File 'lib/algebra_db/value/bool.rb', line 6 def and(other) Value::Bool.new( Build::Op.new('AND', self, other) ) end |
#decoder ⇒ Object
26 27 28 |
# File 'lib/algebra_db/value/bool.rb', line 26 def decoder Decoder.new end |
#or(other) ⇒ Object
12 13 14 15 16 |
# File 'lib/algebra_db/value/bool.rb', line 12 def or(other) Value::Bool.new( Build::Op.new('OR', self, other) ) end |