Class: CodelessCode::Formats::Plain
- Defined in:
- lib/codeless_code/formats/plain.rb
Overview
Prints the CodelessCode::Fable without any formatting, but removes the markup.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from CodelessCode::Formats::Base
Instance Method Details
#call ⇒ Object
22 23 24 25 26 |
# File 'lib/codeless_code/formats/plain.rb', line 22 def call raw.split("\n\n") .map { |str| from_wiki(to_xhtml(regex(str))) } .join("\n\n") end |