Class: CodelessCode::Formats::Plain
- Includes:
- Markup::Nodes
- Defined in:
- lib/codeless_code/formats/plain.rb
Overview
Prints the CodelessCode::Fable without any formatting, but removes the markup.
Constant Summary
Constants included from Markup::Nodes
Markup::Nodes::ELEM_CONTAINERS, Markup::Nodes::ELEM_VOID
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
24 25 26 27 |
# File 'lib/codeless_code/formats/plain.rb', line 24 def call main = Markup::Parser.new(raw).call render(Markup::Converter.new(main).call).rstrip end |