Sha256: a7fb8f7c7c436ce18ef00dcea0041ed1e1868fd0c9be5d6ef45eee82153bb676
Contents?: true
Size: 392 Bytes
Versions: 15
Compression:
Stored size: 392 Bytes
Contents
# encoding: utf-8 require 'active_support/inflector' require 'attr_enumerable/attr_enumerable_helper' # AttrEnumerable module AttrEnumerable private def reverse_attr(attribute, *args, &block) collection.reduce([]) do |r, e| super(method_name, *args) unless include_attr?(e, attribute) r << e.send(attribute) r end.reverse end end
Version data entries
15 entries across 15 versions & 1 rubygems