Class: Axiom::Attribute::Boolean

Inherits:
Object show all
Includes:
Function::Connective::Conjunction::Methods, Function::Connective::Disjunction::Methods, Function::Connective::Negation::Methods
Defined in:
lib/axiom/attribute/boolean.rb

Overview

Represents a Boolean value in a relation tuple

Constant Summary

Constants inherited from Axiom::Attribute

FalseClass, TrueClass

Instance Attribute Summary

Attributes inherited from Axiom::Attribute

#name, #type

Class Method Summary collapse

Methods included from Function::Connective::Conjunction::Methods

#and

Methods included from Axiom::Aliasable

#inheritable_alias

Methods included from Function::Connective::Disjunction::Methods

#or

Methods included from Function::Connective::Negation::Methods

#not

Methods included from Function::Predicate::Equality::Methods

#eq

Methods included from Function::Predicate::Exclusion::Methods

#exclude

Methods included from Function::Predicate::Inequality::Methods

#ne

Methods included from Function::Predicate::Inclusion::Methods

#include

Methods included from Axiom::Aggregate::Count::Methods

#count

Methods inherited from Axiom::Attribute

#call, coerce, #include?, infer_type, #initialize, name_from, #optional?, #rename, #required?

Methods included from Visitable

#accept

Constructor Details

This class inherits a constructor from Axiom::Attribute

Class Method Details

.typeClass<Types::Boolean>

The attribute type

Examples:

type = Axiom::Attribute::Boolean.type  # => Axiom::Types::Boolean

Returns:

  • (Class<Types::Boolean>)


20
21
22
# File 'lib/axiom/attribute/boolean.rb', line 20

def self.type
  Types::Boolean
end