Class: Readingme::Converter
- Inherits:
-
Object
- Object
- Readingme::Converter
- Defined in:
- lib/readingme/converter.rb
Class Method Summary collapse
Class Method Details
.call(input = $stdin, output = $stdout) ⇒ Object
5 6 7 8 9 |
# File 'lib/readingme/converter.rb', line 5 def call input=$stdin, output=$stdout encoded = input.read converted = PandocRuby.convert(encoded, {from: :markdown, to: :html}, 'ascii') output.write converted end |