aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/algebra/extensions/object.rb
blob: efdbbf525fde6e8aeff89dbb196aff6e07da03e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
            
                    
                                   
     
 
                                 

                  
 




                 



               
   
 
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