### Home Classes Methods

### In Files

- lib/maruku/input_textile2/t2_parser.rb

### Parent

Object

### Methods

- ::new

### Class/Module Index

Quicksearch

- MaRuKu
- MaRuKu::Errors
- MaRuKu::Exception
- 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::Out
- MaRuKu::Out::HTML
- MaRuKu::Out::Latex
- MaRuKu::Out::Latex::LatexEntity
- MaRuKu::Out::Markdown
- MaRuKu::Section
- MaRuKu::Strings
- MaRuKu::Tests
- Array
- Hash
- Maruku
- Module
- NilClass
- Object
- String
- Textile2Signature

No matching classes.

# Textile2Signature

### Constants

Reg

### Attributes

block_name[RW]
css_class[RW]
css_id[RW]
double_dot[RW]
filters[RW]
lang[RW]
num_left_pad[RW]
num_right_pad[RW]
style[RW]
text_align[RW]

### Public Class Methods

new(s) click to toggle source

    # File lib/maruku/input_textile2/t2_parser.rb, line 55
    def initialize(s)
            if m = Reg.match(s)
                    self.block_name = m[1]
                    self.style = m[3]
                    self.lang = m[4]
                    self.css_class = m[6]
                    self.css_id = m[7]
                    self.text_align = {nil=>nil,'>'=>'right','<'=>'left',
                            '<>'=>'center','='=>'justified'}[m[8]]
                    self.num_left_pad = m[9] && m[9].size
                    self.num_right_pad = m[10] && m[10].size
                    self.filters = m[11] && m[11].split('|')
                    self.double_dot = m[12] && true
            end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.