Class: Mack::Localization::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/mack-localization/configuration.rb

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
# File 'lib/mack-localization/configuration.rb', line 14

def initialize
  @storage = Mack::Localization::Storage.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object



22
23
24
# File 'lib/mack-localization/configuration.rb', line 22

def method_missing(sym, *args)
  @storage.send(sym, *args)
end

Instance Method Details

#setup {|@storage| ... } ⇒ Object

Yields:

  • (@storage)


18
19
20
# File 'lib/mack-localization/configuration.rb', line 18

def setup
  yield @storage
end