aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/extensions/object.rb
blob: efdbbf525fde6e8aeff89dbb196aff6e07da03e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Object
  def bind(relation)
    Arel::Value.new(self, relation)
  end

  def find_correlate_in(relation)
    bind(relation)
  end

  def metaclass
    class << self
      self
    end
  end

  def let
    yield(self)
  end
end