Module: Burner::Util::Keyable
- Included in:
- Library::Collection::Coalesce, Library::Collection::Group
- Defined in:
- lib/burner/util/keyable.rb
Overview
Provide helper methods for keys.
Instance Method Summary collapse
Instance Method Details
#make_key(record, keys, resolver, insensitive) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/burner/util/keyable.rb', line 14 def make_key(record, keys, resolver, insensitive) keys.map do |key| value = resolver.get(record, key) insensitive ? value.to_s.downcase : value end end |