Class: NishisukeBlogSyntax::Formatter::FormatterBase

Inherits:
Object
  • Object
show all
Defined in:
lib/nishisuke_blog_syntax/formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(txt) ⇒ Object



4
5
6
# File 'lib/nishisuke_blog_syntax/formatter.rb', line 4

def format(txt)
  txt.gsub(regexp) { |matched| substitute(matched) }
end