Sha256: ed72377ba767975422bbf05d2d6348d10eaf55136abd459f95ec579882852eee

Contents?: true

Size: 506 Bytes

Versions: 3

Compression:

Stored size: 506 Bytes

Contents

require 'rabl'
require 'grape'
require 'hashie/hash'
require 'grape-rabl/tilt'
require 'grape-rabl/version'
require 'grape-rabl/formatter'
require 'grape-rabl/render'
require 'grape-rabl/configuration'

module Grape
  module Rabl
    class << self
      def configure(&block)
        yield(configuration)
        configuration
      end

      def configuration
        @configuration ||= Configuration.new
      end

      def reset_configuration!
        @configuration = nil
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-rabl-0.4.0 lib/grape-rabl.rb
grape-rabl-0.3.1 lib/grape-rabl.rb
grape-rabl-0.3.0 lib/grape-rabl.rb