Class: Maruku

### Home Classes Methods

### In Files

- lib/maruku.rb
- lib/maruku/maruku.rb

### Parent

MaRuKu::MDDocument

### Namespace

- MODULE Maruku::In

### Methods

- ::new
- #to_s

### Class/Module Index

Quicksearch

- MaRuKu
- MaRuKu::AttributeList
- MaRuKu::Errors
- MaRuKu::Exception
- MaRuKu::HTMLElement
- MaRuKu::HTMLFragment
- MaRuKu::Helpers
- MaRuKu::In
- MaRuKu::In::Markdown
- MaRuKu::In::Markdown::BlockLevelParser
- MaRuKu::In::Markdown::BlockLevelParser::BlockContext
- MaRuKu::In::Markdown::BlockLevelParser::LineSource
- MaRuKu::In::Markdown::SpanExtension
- MaRuKu::In::Markdown::SpanLevelParser
- MaRuKu::In::Markdown::SpanLevelParser::CharSourceDebug
- MaRuKu::In::Markdown::SpanLevelParser::CharSourceManual
- MaRuKu::In::Markdown::SpanLevelParser::CharSourceStrscan
- MaRuKu::In::Markdown::SpanLevelParser::HTMLHelper
- MaRuKu::In::Markdown::SpanLevelParser::SpanContext
- MaRuKu::MDDocument
- MaRuKu::MDElement
- MaRuKu::MDHTMLElement
- MaRuKu::MDLine
- MaRuKu::NokogiriHTMLFragment
- MaRuKu::Out
- MaRuKu::Out::EntityTable
- MaRuKu::Out::HTML
- MaRuKu::Out::HTML::HTMLElement
- MaRuKu::Out::Latex
- MaRuKu::Out::Latex::MDDocumentExtensions
- MaRuKu::Out::Markdown
- MaRuKu::REXMLHTMLFragment
- MaRuKu::Section
- MaRuKu::Strings
- Maruku
- Maruku::In
- Maruku::In::Markdown
- Maruku::In::Markdown::FencedCode
- Object
- String
- Textile2Signature

No matching classes.

# Maruku

The public interface for Maruku.

@example Render a document fragment Maruku.new("## Header ##").to_html # => "<h2 id='header'>header</h2>"

### Public Class Methods

new(s = nil, meta = {}) click to toggle source

    # File lib/maruku/maruku.rb, line 7
    def initialize(s = nil, meta = {})
      super()
      self.attributes.merge! meta
      parse_doc(s) if s
    end

### Public Instance Methods

to_s() click to toggle source

    # File lib/maruku/maruku.rb, line 13
    def to_s
      warn "Maruku#to_s is deprecated and will be removed or changed in a near-future version of Maruku."
      super
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.