Module: ShareCounts::Common
- Included in:
- ShareCounts, Reddit
- Defined in:
- lib/share_counts/common.rb
Instance Method Summary collapse
Instance Method Details
#to_merged_hash(array) ⇒ Object
4 5 6 |
# File 'lib/share_counts/common.rb', line 4 def to_merged_hash array array.inject({}){|r, c| r.merge!(c); r } end |