class NishisukeBlogSyntax::Formatter::FormatterBase
Public Instance Methods
format(txt)
click to toggle source
# File lib/nishisuke_blog_syntax/formatter.rb, line 4 def format(txt) txt.gsub(regexp) { |matched| substitute(matched) } end
Private Instance Methods
regexp()
click to toggle source
# File lib/nishisuke_blog_syntax/formatter.rb, line 10 def regexp raise NotImplementedError end
substitute()
click to toggle source
# File lib/nishisuke_blog_syntax/formatter.rb, line 14 def substitute raise NotImplementedError end