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
|