Class: CodelessCode::Formats::Plain

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

#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
# 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