Sha256: 760aab351ffa5d9e9b4679aeeaee7d292e24f088b76f9c444e23d065802a784d

Contents?: true

Size: 677 Bytes

Versions: 146

Compression:

Stored size: 677 Bytes

Contents

module Arel
  module Attributes
    class Attribute < Struct.new :relation, :name
      include Arel::Expressions
      include Arel::Predications
      include Arel::AliasPredication
      include Arel::OrderPredications
      include Arel::Math

      ###
      # Create a node for lowering this attribute
      def lower
        relation.lower self
      end
    end

    class String    < Attribute; end
    class Time      < Attribute; end
    class Boolean   < Attribute; end
    class Decimal   < Attribute; end
    class Float     < Attribute; end
    class Integer   < Attribute; end
    class Undefined < Attribute; end
  end

  Attribute = Attributes::Attribute
end

Version data entries

146 entries across 125 versions & 20 rubygems

Version Path
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-rolls-0.2.0 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-0.8.3 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
challah-0.8.1 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-rolls-0.1.0 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-0.8.0.pre vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-0.7.1 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
challah-0.7.0 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-0.7.0.pre2 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
challah-0.7.0.pre vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-0.6.2 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb