Module: Bmg::Operator::Autowrap::Support

Defined in:
lib/bmg/operator/autowrap.rb

Overview

NoLeftJoinNoise

Class Method Summary collapse

Class Method Details

.wrapped_roots(attrlist, split_symbol) ⇒ Object



301
302
303
304
305
306
# File 'lib/bmg/operator/autowrap.rb', line 301

def wrapped_roots(attrlist, split_symbol)
  attrlist.map{|a|
    split = a.to_s.split(split_symbol)
    split.size == 1 ? nil : split[0]
  }.compact.uniq.map(&:to_sym)
end