Class: ProxyFetcher::HTML
- Inherits:
-
Object
- Object
- ProxyFetcher::HTML
- Defined in:
- lib/proxy_fetcher/utils/html.rb
Class Method Summary collapse
Class Method Details
.clear(text) ⇒ Object
4 5 6 7 8 |
# File 'lib/proxy_fetcher/utils/html.rb', line 4 def clear(text) return if text.nil? || text.empty? text.strip.gsub(/[ \t]/i, '') end |
.convert_to_int(text) ⇒ Object
10 11 12 |
# File 'lib/proxy_fetcher/utils/html.rb', line 10 def convert_to_int(text) Integer(clear(text)) end |