Class: Grape::Util::StrictHashConfiguration::SettingsContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/grape/util/strict_hash_configuration.rb

Instance Method Summary collapse

Constructor Details

#initializeSettingsContainer

Returns a new instance of SettingsContainer.



23
24
25
26
# File 'lib/grape/util/strict_hash_configuration.rb', line 23

def initialize
  @settings = {}
  @contexts = {}
end

Instance Method Details

#to_hashObject



28
29
30
# File 'lib/grape/util/strict_hash_configuration.rb', line 28

def to_hash
  @settings.to_hash
end