Method: Bmg::Operator::Constants#insert
- Defined in:
- lib/bmg/operator/constants.rb
#insert(arg) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/bmg/operator/constants.rb', line 32 def insert(arg) case arg when Hash then operand.insert(allbut_constants(arg)) when Relation then operand.insert(arg.allbut(the_constants.keys)) when Enumerable then operand.insert(arg.map{|t| allbut_constants(t) }) else super end end |