Parent

Files

Class Index [+]

Quicksearch

Arel::Row

Attributes

tuple[R]
relation[R]

Public Class Methods

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

Public Instance Methods

[](attribute) click to toggle source
    # File lib/arel/algebra/relations/row.rb, line 10
10:     def [](attribute)
11:       attribute.type_cast(tuple[relation.position_of(attribute)])
12:     end
bind(relation) click to toggle source
    # File lib/arel/algebra/relations/row.rb, line 21
21:     def bind(relation)
22:       Row.new(relation, tuple)
23:     end
combine(other, relation) click to toggle source
    # File lib/arel/algebra/relations/row.rb, line 25
25:     def combine(other, relation)
26:       Row.new(relation, tuple + other.tuple)
27:     end
slice(*attributes) click to toggle source
    # File lib/arel/algebra/relations/row.rb, line 14
14:     def slice(*attributes)
15:       Row.new(relation, attributes.map do |attribute|
16:         # FIXME TESTME method chaining
17:         tuple[relation.relation.position_of(attribute)]
18:       end)
19:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.