Class: Smartware::Driver::Printer::DummyRender
- Inherits:
-
Redcarpet::Render::Base
- Object
- Redcarpet::Render::Base
- Smartware::Driver::Printer::DummyRender
- Defined in:
- lib/smartware/drivers/printer/dummy.rb
Instance Method Summary collapse
Instance Method Details
#linebreak ⇒ Object
48 49 50 |
# File 'lib/smartware/drivers/printer/dummy.rb', line 48 def linebreak "\n" end |
#normal_text(text, keep_newlines = false) ⇒ Object
52 53 54 55 56 57 58 |
# File 'lib/smartware/drivers/printer/dummy.rb', line 52 def normal_text(text, keep_newlines = false) unless keep_newlines text.gsub! "\n", " " end text end |