Class: CodelessCode::Formats::Plain

Inherits:
Base
  • Object
show all
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

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CodelessCode::Formats::Base

Instance Method Details

#callObject


24
25
26
27
28
# File 'lib/codeless_code/formats/plain.rb', line 24

def call
  raw.split("\n\n")
     .map { |str| from_wiki(CleanupBody.new(str)) }
     .join("\n\n")
end