Module: Pedantic::Html
- Included in:
- Pedantic
- Defined in:
- lib/pedantic/html.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 |
# File 'lib/pedantic/html.rb', line 2 def self.included(base) base.processors :remove_html end |
Instance Method Details
#remove_html(string) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/pedantic/html.rb', line 6 def remove_html(string) [ /"/ ].each { |pattern| string.gsub!(pattern, '') } string end |