Module: HumanistErrors::ExceptionExtensions
- Defined in:
- lib/humanist_errors/exception_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/humanist_errors/exception_extensions.rb', line 3 def to_s searcher = Search.run(self.class, super) if searcher.found_error == :no_result super else color = Color.new "\n#{STARTING_TOKEN}"+ "\t#{color.cyan(searcher.found_error)}\n"+ "#{ENDING_TOKEN}" + super end end |