class Shift::RDiscount

Public Class Methods

gem_dependencies() click to toggle source
# File lib/shift/i/rdiscount.rb, line 5
def self.gem_dependencies
  %w{rdiscount}
end
new(*switches) click to toggle source
# File lib/shift/i/rdiscount.rb, line 13
def initialize(*switches)
  @switches = switches
end
target_format() click to toggle source
# File lib/shift/i/rdiscount.rb, line 9
def self.target_format
  'html'
end

Public Instance Methods

process(str) click to toggle source
# File lib/shift/i/rdiscount.rb, line 17
def process(str)
  ::RDiscount.new(str, *@switches).to_html
end