Class: Webern::Formatters::TextFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Webern::Formatters::TextFormatter
- Defined in:
- lib/webern/formatters/text_formatter.rb
Constant Summary
Constants inherited from BaseFormatter
BaseFormatter::DEFAULT_OPTS, BaseFormatter::PITCH_CLASSES
Instance Method Summary collapse
Methods inherited from BaseFormatter
Constructor Details
This class inherits a constructor from Webern::Formatters::BaseFormatter
Instance Method Details
#draw ⇒ Object
4 5 6 |
# File 'lib/webern/formatters/text_formatter.rb', line 4 def draw output($stdout) end |
#write_to_file ⇒ Object
9 10 11 12 13 |
# File 'lib/webern/formatters/text_formatter.rb', line 9 def write_to_file File.open("#{@filepath}.txt", 'w') do |f| output(f) end end |