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.8.0 lib/head_music/staff.rb
head_music-0.7.0 lib/head_music/staff.rb
head_music-0.6.4 lib/head_music/staff.rb
head_music-0.6.3 lib/head_music/staff.rb
head_music-0.6.1 lib/head_music/staff.rb
head_music-0.6.0 lib/head_music/staff.rb