Class: Lasso::Model::Settings::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/lasso/model/settings.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object



5
6
7
8
# File 'lib/lasso/model/settings.rb', line 5

def method_missing(symbol, *args)
  @settings ||= {}
  @settings[symbol] = args.first
end

Instance Method Details

#to_hObject



9
10
11
# File 'lib/lasso/model/settings.rb', line 9

def to_h
  @settings || {}
end