Sha256: 37c31da3d4551b416abb53c5d5011d722163ed7050d226a8af953cc897cc829f
Contents?: true
Size: 403 Bytes
Versions: 12
Compression:
Stored size: 403 Bytes
Contents
# encoding: utf-8 require 'attr_enumerable/attr_enumerable_helper' # AttrEnumerable module AttrEnumerable private def concat_attr(attribute, method_name, *args, &block) add_array = Array(*args) return add_array if collection.empty? super(method_name, *args) unless include_attr?(collection.first, attribute) collection.map(&attribute.to_sym).concat(add_array) end end
Version data entries
12 entries across 12 versions & 1 rubygems