diff options
Diffstat (limited to 'lib/arel/algebra/relations/row.rb')
-rw-r--r-- | lib/arel/algebra/relations/row.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/arel/algebra/relations/row.rb b/lib/arel/algebra/relations/row.rb deleted file mode 100644 index 84f19e372f..0000000000 --- a/lib/arel/algebra/relations/row.rb +++ /dev/null @@ -1,29 +0,0 @@ -module Arel - class Row - attr_reader :tuple, :relation - - def initialize relation, tuple - @relation = relation - @tuple = tuple - end - - def [](attribute) - attribute.type_cast(tuple[relation.position_of(attribute)]) - end - - def slice(*attributes) - Row.new(relation, attributes.map do |attribute| - # FIXME TESTME method chaining - tuple[relation.relation.position_of(attribute)] - end) - end - - def bind(relation) - Row.new(relation, tuple) - end - - def combine(other, relation) - Row.new(relation, tuple + other.tuple) - end - end -end |