Methods

Class/Module Index [+]

Quicksearch

Grape::Formatter::Txt

Public Class Methods

call(object, env) click to toggle source
# File lib/grape/formatter/txt.rb, line 5
def call(object, env)
  object.respond_to?(:to_txt) ? object.to_txt : object.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.