Module: Grape::Rabl

Defined in:
lib/grape-rabl.rb,
lib/grape-rabl/version.rb,
lib/grape-rabl/configuration.rb

Defined Under Namespace

Classes: Configuration

Constant Summary collapse

VERSION =
'0.3.1'

Class Method Summary collapse

Class Method Details

.configurationObject


18
19
20
# File 'lib/grape-rabl.rb', line 18

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:


13
14
15
16
# File 'lib/grape-rabl.rb', line 13

def configure(&block)
  yield(configuration)
  configuration
end

.reset_configuration!Object


22
23
24
# File 'lib/grape-rabl.rb', line 22

def reset_configuration!
  @configuration = nil
end