Module: Script2md

Defined in:
lib/script2md.rb,
lib/script2md/version.rb

Defined Under Namespace

Classes: Convert, Fill

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.convert(text, language_type: nil, source_path: nil) ⇒ Object



4
5
6
7
8
# File 'lib/script2md.rb', line 4

def self.convert(text, language_type: nil, source_path: nil)
  output = Convert.new(text, language_type: language_type).convert.text
  output = Fill.new(output, source_path: source_path).convert.text if source_path
  output
end