Sha256: f314226328b826527b4145ac297e2bc19d47f237d3c8fdc86a22b5c0f56217ca

Contents?: true

Size: 268 Bytes

Versions: 7

Compression:

Stored size: 268 Bytes

Contents

module PM

# A Song is a named list of Patches with a cursor.
class Song

  attr_accessor :name, :patches

  def initialize(name)
    @name = name
    @patches = []
    PatchMaster.instance.all_songs << self
  end

  def <<(patch)
    @patches << patch
  end

end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
patchmaster-1.0.0 lib/patchmaster/song.rb
patchmaster-0.0.6 lib/patchmaster/song.rb
patchmaster-0.0.5 lib/patchmaster/song.rb
patchmaster-0.0.4 lib/patchmaster/song.rb
patchmaster-0.0.3 lib/patchmaster/song.rb
patchmaster-0.0.2 lib/patchmaster/song.rb
patchmaster-0.0.1 lib/patchmaster/song.rb