Class: Hash
Instance Method Summary collapse
-
#_select ⇒ Object
An implementation of select that returns a Hash.
Instance Method Details
#_select ⇒ Object
An implementation of select that returns a Hash.
47 48 49 50 51 |
# File 'lib/has_many_polymorphs/support_methods.rb', line 47 def _select Hash[*self.select do |key, value| yield key, value end._flatten_once] end |