Module: MarkupParser
- Defined in:
- lib/markup_parser.rb,
lib/markup_parser/html.rb,
lib/markup_parser/rdoc.rb,
lib/markup_parser/default.rb,
lib/markup_parser/version.rb,
lib/markup_parser/markdown.rb
Defined Under Namespace
Classes: Default, Html, Markdown, Rdoc
Constant Summary
collapse
- PARSER_PATH =
File.join(File.dirname(__FILE__), 'markup_parser')
- VERSION =
"0.0.9"
Class Method Summary
collapse
Class Method Details
13
14
15
|
# File 'lib/markup_parser.rb', line 13
def self.format_parsers
Hash[*formats.zip(parsers).flatten]
end
|
9
10
11
|
# File 'lib/markup_parser.rb', line 9
def self.formats
parser_files.collect {|f| File.basename(f, '.rb') } - ["version"]
end
|
.parsers ⇒ Object
17
18
19
|
# File 'lib/markup_parser.rb', line 17
def self.parsers
formats.collect {|f| constantize(camelize("markup_parser/#{f}")) }
end
|
.reload_parsers ⇒ Object
21
22
23
|
# File 'lib/markup_parser.rb', line 21
def self.reload_parsers
parser_files.each { |parser_file| require parser_file }
end
|