Module: Grape::Msgpack::Formatter
- Defined in:
- lib/grape/msgpack.rb
Class Method Summary collapse
Class Method Details
.call(obj, env) ⇒ Object
10 11 12 13 |
# File 'lib/grape/msgpack.rb', line 10 def call(obj, env) return obj.to_msgpack if obj.respond_to?(:to_msgpack) MessagePack.pack(obj) end |