class HTML::Pipeline::BoldFilter
Public Instance Methods
call()
click to toggle source
# File lib/html/pipeline/bungo/bold_filter.rb, line 5 def call bold_filter(@text) end
Private Instance Methods
bold_filter(text)
click to toggle source
# File lib/html/pipeline/bungo/bold_filter.rb, line 11 def bold_filter(text) text.gsub(/:([^:\(\)\!\|]+?)\!/) do |match| "<b>#{$1}</b>" end end