Sha256: 0a08ae6384ff069258b86f458af44ced85439062b9c7c55ce9e755f65d71a3e0
Contents?: true
Size: 370 Bytes
Versions: 6
Compression:
Stored size: 370 Bytes
Contents
class HeadMusic::Instrument::StaffScheme attr_reader :variant, :key, :list def initialize(variant:, key:, list:) @variant = variant @key = key || "default" @list = list end def default? key.to_s == "default" end def staves @staves ||= list.map do |attributes| HeadMusic::Instrument::Staff.new(self, attributes) end end end
Version data entries
6 entries across 6 versions & 1 rubygems