Method: Coltrane::Theory::Key#initialize
- Defined in:
- lib/coltrane/theory/key.rb
#initialize(notation) ⇒ Key
Returns a new instance of Key.
8 9 10 11 |
# File 'lib/coltrane/theory/key.rb', line 8 def initialize(notation) _, note, s = *notation.match(KEY_REGEX) super(note, major: s != 'm') end |