Class: Mack::Localization::Configuration
- Includes:
- Singleton
- Defined in:
- lib/mack-localization/configuration.rb
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #method_missing(sym, *args) ⇒ Object
- #setup {|@storage| ... } ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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
18 19 20 |
# File 'lib/mack-localization/configuration.rb', line 18 def setup yield @storage end |