Sha256: 4a475447deecc15da989a5e226d74a2863b7d6b6078ba54259fc7f40c72fb2b9

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

# encoding: utf-8

module Axiom
  class Attribute

    # Represents a Boolean value in a relation tuple
    class Boolean < Object
      include Function::Connective::Conjunction::Methods,
              Function::Connective::Disjunction::Methods,
              Function::Connective::Negation::Methods

      # The attribute type
      #
      # @example
      #   type = Axiom::Attribute::Boolean.type  # => Axiom::Types::Boolean
      #
      # @return [Class<Types::Boolean>]
      #
      # @api public
      def self.type
        Types::Boolean
      end

    end # class Boolean

    # Add aliases for Boolean
    TrueClass  = Boolean
    FalseClass = Boolean

  end # class Attribute
end # module Axiom

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 lib/axiom/attribute/boolean.rb
axiom-0.1.1 lib/axiom/attribute/boolean.rb