Sha256: f05dc37324826eb8763b91fbba3fa75bbc5334623233cd2e2c72e494a28e92c7

Contents?: true

Size: 349 Bytes

Versions: 15

Compression:

Stored size: 349 Bytes

Contents

module Arel
  module Nodes
    class Function < Arel::Nodes::Node
      include Arel::Expression
      attr_accessor :expressions, :alias

      def initialize expr, aliaz = nil
        @expressions = expr
        @alias       = aliaz
      end

      def as aliaz
        self.alias = SqlLiteral.new(aliaz)
        self
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
arel-2.0.10 lib/arel/nodes/function.rb
square-arel-2.0.9.20110222133018 lib/arel/nodes/function.rb
arel-2.0.9 lib/arel/nodes/function.rb
arel-2.0.9.rc1 lib/arel/nodes/function.rb
arel-2.0.8 lib/arel/nodes/function.rb
arel-2.0.8.beta.20110131120940 lib/arel/nodes/function.rb
arel-2.0.7 lib/arel/nodes/function.rb
arel-2.0.7.beta.20110110114925 lib/arel/nodes/function.rb
arel-2.0.6 lib/arel/nodes/function.rb
arel-2.0.5 lib/arel/nodes/function.rb
arel-2.0.4 lib/arel/nodes/function.rb
arel-2.0.3 lib/arel/nodes/function.rb
arel-2.0.2 lib/arel/nodes/function.rb
arel-2.0.1 lib/arel/nodes/function.rb
arel-2.0.0 lib/arel/nodes/function.rb