lib/jsonapi-serializer-formats.rb
#
# Defines a named format with a block
#
# @param [Symbol] fmt the name of the format you wish to create
#
#
Defines a named format with a block
Defines a named format with a block
def format(fmt)
          scoped_formats.push(fmt)
          yield
        ensure
          scoped_formats.pop
        end
def format ( fmt ) scoped_formats . push ( fmt ) yield ensure scoped_formats . pop end
Defines a named format with a block
Defines a named format with a block
fmt
<not_specific>
<not_specific>
fmt the name of the format you wish to create
fmt the name of the format you wish to create