class RSGuitarTech::SavedGame::SongCollection

Attributes

collection[RW]

Public Class Methods

new(klass, json) click to toggle source
# File lib/rsgt/saved_game/song_collection.rb, line 8
def initialize(klass, json)
  @collection = json.inject({}) do |memo, (key, value)|
    memo[key] = klass::Song.from(key, value)
    memo
  end
end