Class: Shift::RDiscount

Inherits:
Interface show all
Defined in:
lib/shift/i/rdiscount.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Interface

available?, default, engine_class, instructions, keep_extension?, new, #rename, require_libs

Constructor Details

#initialize(*switches) ⇒ RDiscount

Returns a new instance of RDiscount.



13
14
15
# File 'lib/shift/i/rdiscount.rb', line 13

def initialize(*switches)
  @switches = switches
end

Class Method Details

.gem_dependenciesObject



5
6
7
# File 'lib/shift/i/rdiscount.rb', line 5

def self.gem_dependencies
  %w{rdiscount}
end

.target_formatObject



9
10
11
# File 'lib/shift/i/rdiscount.rb', line 9

def self.target_format
  'html'
end

Instance Method Details

#process(str) ⇒ Object



17
18
19
# File 'lib/shift/i/rdiscount.rb', line 17

def process(str)
  ::RDiscount.new(str, *@switches).to_html
end