Sha256: a844e728a006100074b3ce3296afe09208bc0a7c77b58d0d73756e6da8f632df

Contents?: true

Size: 390 Bytes

Versions: 26

Compression:

Stored size: 390 Bytes

Contents

class HeadMusic::Staff
  DEFAULT_LINE_COUNT = 5

  attr_reader :default_clef, :line_count, :instrument
  alias_method :clef, :default_clef

  def initialize(default_clef, instrument: nil, line_count: nil)
    @default_clef = HeadMusic::Clef.get(default_clef)
    @line_count = line_count || DEFAULT_LINE_COUNT
    @instrument = HeadMusic::Instrument.get(instrument) if instrument
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
head_music-0.17.0 lib/head_music/staff.rb
head_music-0.16.2 lib/head_music/staff.rb
head_music-0.16.0 lib/head_music/staff.rb
head_music-0.14.8 lib/head_music/staff.rb
head_music-0.14.7 lib/head_music/staff.rb
head_music-0.14.5 lib/head_music/staff.rb
head_music-0.14.4 lib/head_music/staff.rb
head_music-0.14.2 lib/head_music/staff.rb
head_music-0.14.1 lib/head_music/staff.rb
head_music-0.13.2 lib/head_music/staff.rb
head_music-0.11.9 lib/head_music/staff.rb
head_music-0.11.8 lib/head_music/staff.rb
head_music-0.11.7 lib/head_music/staff.rb
head_music-0.11.6 lib/head_music/staff.rb
head_music-0.11.5 lib/head_music/staff.rb
head_music-0.11.4 lib/head_music/staff.rb
head_music-0.11.3 lib/head_music/staff.rb
head_music-0.11.2 lib/head_music/staff.rb
head_music-0.11.1 lib/head_music/staff.rb
head_music-0.10.0 lib/head_music/staff.rb