Sha256: 3808415acf731e1e1cb6fb533e80cdab3e1bc9f33229a1bbb676fd471c4aa28a

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

module Grape
  module Roar
    module Representer
      def self.included(base)
        base.extend(ClassMethods)
      end

      module ClassMethods
        def represent(object, _options = {})
          object.extend self
          object
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grape-roar-0.4.0 lib/grape/roar/representer.rb
grape-roar-0.3.0 lib/grape/roar/representer.rb
grape-roar-0.2.0 lib/grape/roar/representer.rb
grape-roar-0.1.0 lib/grape/roar/representer.rb