Class: Utils::Converter
- Inherits:
-
Object
show all
- Defined in:
- lib/bujo/utils/converter.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.for(source_path) ⇒ Object
11
12
13
|
# File 'lib/bujo/utils/converter.rb', line 11
def self.for(source_path)
source_path =~ /.*\.adoc$/ ? AsciidocFileConverter.new(source_path) : RegularFileConverter.new(source_path)
end
|
Instance Method Details
#convert ⇒ Object
19
20
21
|
# File 'lib/bujo/utils/converter.rb', line 19
def convert
raise NotImplementedError
end
|