Parent

Files

Class Index [+]

Quicksearch

Arel::Value

Attributes

value[R]
relation[R]

Public Class Methods

new(value, relation) click to toggle source
   # File lib/arel/algebra/value.rb, line 5
5:     def initialize value, relation
6:       @value = value
7:       @relation = relation
8:     end

Public Instance Methods

==(other) click to toggle source
    # File lib/arel/algebra/value.rb, line 10
10:     def == other
11:       super ||
12:         Value === other &&
13:         value == other.value &&
14:         relation == other.relation
15:     end
bind(relation) click to toggle source
    # File lib/arel/algebra/value.rb, line 21
21:     def bind(relation)
22:       Value.new(value, relation)
23:     end
equality_predicate_sql() click to toggle source
    # File lib/arel/algebra/value.rb, line 37
37:     def equality_predicate_sql
38:       value.equality_predicate_sql
39:     end
eval(row) click to toggle source
    # File lib/arel/algebra/value.rb, line 17
17:     def eval(row)
18:       value
19:     end
exclusion_predicate_sql() click to toggle source
    # File lib/arel/algebra/value.rb, line 33
33:     def exclusion_predicate_sql
34:       value.exclusion_predicate_sql
35:     end
format(object) click to toggle source
    # File lib/arel/algebra/value.rb, line 49
49:     def format(object)
50:       object.to_sql(Sql::Value.new(relation))
51:     end
inclusion_predicate_sql() click to toggle source
    # File lib/arel/algebra/value.rb, line 29
29:     def inclusion_predicate_sql
30:       value.inclusion_predicate_sql
31:     end
inequality_predicate_sql() click to toggle source
    # File lib/arel/algebra/value.rb, line 41
41:     def inequality_predicate_sql
42:       value.inequality_predicate_sql
43:     end
to_ordering() click to toggle source
    # File lib/arel/algebra/value.rb, line 25
25:     def to_ordering
26:       self
27:     end
to_sql(formatter = Sql::WhereCondition.new(relation)) click to toggle source
    # File lib/arel/algebra/value.rb, line 45
45:     def to_sql(formatter = Sql::WhereCondition.new(relation))
46:       formatter.value value
47:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.