Class: Texter::TextileFormatter

Inherits:
Formatter show all
Defined in:
app/lib/texter/textile_formatter.rb

Instance Attribute Summary

Attributes inherited from Formatter

#body, #options

Instance Method Summary collapse

Methods inherited from Formatter

#initialize

Constructor Details

This class inherits a constructor from Texter::Formatter

Instance Method Details

#blockObject



21
22
23
# File 'app/lib/texter/textile_formatter.rb', line 21

def block
  textile
end

#inlineObject



16
17
18
19
# File 'app/lib/texter/textile_formatter.rb', line 16

def inline
  restrictions_with_lite_mode = (options[:restrictions] + [:lite_mode]).uniq
  textile :restrictions => restrictions_with_lite_mode
end