Class: HeadMusic::Style::Annotation::Configured
- Inherits:
-
Object
- Object
- HeadMusic::Style::Annotation::Configured
- Defined in:
- lib/head_music/style/annotation.rb
Overview
A RULESET entry pairing a guideline class with configuration. Quacks like a class to the analyze loop by responding to #new(voice).
Instance Attribute Summary collapse
-
#guideline_class ⇒ Object
readonly
Returns the value of attribute guideline_class.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(guideline_class, options) ⇒ Configured
constructor
A new instance of Configured.
-
#name ⇒ Object
(also: #to_s, #inspect)
-
#new(voice) ⇒ Object
Constructor Details
#initialize(guideline_class, options) ⇒ Configured
Returns a new instance of Configured.
42 43 44 45 |
# File 'lib/head_music/style/annotation.rb', line 42 def initialize(guideline_class, ) @guideline_class = guideline_class @options = end |
Instance Attribute Details
#guideline_class ⇒ Object (readonly)
Returns the value of attribute guideline_class.
40 41 42 |
# File 'lib/head_music/style/annotation.rb', line 40 def guideline_class @guideline_class end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
40 41 42 |
# File 'lib/head_music/style/annotation.rb', line 40 def @options end |
Instance Method Details
#name ⇒ Object Also known as: to_s, inspect
51 52 53 |
# File 'lib/head_music/style/annotation.rb', line 51 def name guideline_class.name end |
#new(voice) ⇒ Object
47 48 49 |
# File 'lib/head_music/style/annotation.rb', line 47 def new(voice) guideline_class.new(voice, **) end |