Exception: Exception
- Defined in:
- lib/exception_search/exception.rb
Overview
Extends the base exception class with methods to display links to search results
Instance Method Summary collapse
Instance Method Details
#to_google ⇒ Object
5 6 7 |
# File 'lib/exception_search/exception.rb', line 5 def to_google "https://www.google.com/search?q=#{URI::encode()}" end |
#to_stackoverflow ⇒ Object
9 10 11 |
# File 'lib/exception_search/exception.rb', line 9 def to_stackoverflow "http://stackoverflow.com/search?q=#{URI::encode()}" end |