Method: Synthesizer::Note#initialize
- Defined in:
- lib/synthesizer/note.rb
#initialize(num) ⇒ Note
Returns a new instance of Note.
31 32 33 |
# File 'lib/synthesizer/note.rb', line 31 def initialize(num) @num = num.to_i end |
Returns a new instance of Note.
31 32 33 |
# File 'lib/synthesizer/note.rb', line 31 def initialize(num) @num = num.to_i end |