Method: VCLog::ChangeLog#by_type
- Defined in:
- lib/vclog/changelog.rb
#by_type ⇒ Object
126 127 128 129 130 131 132 133 |
# File 'lib/vclog/changelog.rb', line 126 def by_type mapped = {} changes.each do |entry| mapped[entry.type] ||= self.class.new mapped[entry.type] << entry end mapped end |