lib/qipowl.rb in qipowl-0.9.0 vs lib/qipowl.rb in qipowl-0.9.1

- old
+ new

@@ -2,11 +2,13 @@ require_relative "qipowl/version" require_relative "qipowl/core/mapper" require_relative "qipowl/core/ruler" require_relative "qipowl/core/bowler" + require_relative "qipowl/bowlers/html" +require_relative "qipowl/bowlers/i_sp_ru" #require_relative "qipowl/bowlers/cmd" #require_relative "qipowl/bowlers/yaml" Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 @@ -31,20 +33,18 @@ # A wrapper for the configuration block def config &block instance_eval(&block) end - def self.tg__html - Html.new - end - - def self.tg_md__html - result = tg__html - result.merge_rules "#{File.dirname(__FILE__)}/tagmaps/markdown2html.yaml" - result - end end Qipowl::config do params :bowlers_dir bowlers_dir File.expand_path(File.join(__dir__, '..', 'config', 'bowlers')) +end + +class Qipowl::Html + attr_reader :bowler + def self.parse s + (@bowler ||= Qipowl::Ruler.new_bowler "html").execute s + end end \ No newline at end of file