Class: Shift::RDiscount
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_dependencies ⇒ Object
5
6
7
|
# File 'lib/shift/i/rdiscount.rb', line 5
def self.gem_dependencies
%w{rdiscount}
end
|
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
|