Class: Grape::Formatter::Txt
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.call(object, _env) ⇒ Object
6 7 8 |
# File 'lib/grape/formatter/txt.rb', line 6 def self.call(object, _env) object.respond_to?(:to_txt) ? object.to_txt : object.to_s end |