lib/rom/sql/header.rb in rom-sql-0.2.0 vs lib/rom/sql/header.rb in rom-sql-0.3.0

- old
+ new

@@ -23,9 +23,13 @@ left, right = col.to_s.split('___') h[left.to_sym] = (right || left).to_sym } end + def names + map { |col| :"#{col.to_s.split('___').last}" } + end + def project(*names) find_all { |col| names.include?(col) } end def qualified