Method: Bypass::TextFilter#replace
- Defined in:
- lib/bypass/text_filter.rb
#replace(&block) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/bypass/text_filter.rb', line 4 def replace(&block) @content = gsub_urls(content) do |url| if parsed_url = parse_uri(url) yield(parsed_url).to_s end end end |