Class: TextPlayer::Formatters::Text
- Defined in:
- lib/text_player/formatters/text.rb
Overview
Plain text formatter - returns raw output
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #to_h, write, #write
Constructor Details
This class inherits a constructor from TextPlayer::Formatters::Base
Instance Method Details
#to_s ⇒ Object
9 10 11 12 13 |
# File 'lib/text_player/formatters/text.rb', line 9 def to_s content = command_result. || command_result.raw_output content = remove_prompt(content) "#{content}\n\n" end |