Class: Music::Arrangement::InstrumentAssignment

Inherits:
Object
  • Object
show all
Includes:
Hashmake::HashMakeable
Defined in:
lib/music-arrangement/instrument_assignment.rb

Overview

Contains all the information needed to create the instrument plugin, configure initial settings, and any settings changes.

Author:

  • James Tunnell

Constant Summary collapse

ARG_SPECS =

hashed-arg specs (for hash-makeable idiom)

{
  :class_specifier => arg_spec(:reqd => true, :type => ClassSpecifier),
  :initial_settings => arg_spec_array(:reqd => false, :type => [String, Hash])
}

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ InstrumentAssignment

A new instance of InstrumentConfig.



18
19
20
# File 'lib/music-arrangement/instrument_assignment.rb', line 18

def initialize args={}
  hash_make args, InstrumentAssignment::ARG_SPECS
end