Class: WhatIs::Formatter
- Inherits:
- 
      Object
      
        - Object
- WhatIs::Formatter
 
- Defined in:
- lib/whatis/formatter.rb
Instance Method Summary collapse
Instance Method Details
#call(title, object) ⇒ Object
| 6 7 8 9 10 11 12 13 14 15 16 17 | # File 'lib/whatis/formatter.rb', line 6 def call(title, object) str = case object when ThisIs format_thisis(object) when ThisIs::Ambigous format_ambigous(object) when ThisIs::NotFound format_notfound(object) end "#{title}: #{str}" end |