Class: CustomReport::Settings

Inherits:
Hash
  • Object
show all
Defined in:
lib/custom_report/settings.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



3
4
5
6
7
# File 'lib/custom_report/settings.rb', line 3

def method_missing(name, *args)
  return self[name] if args.length == 0
  self[name] = args.first if args.length == 1
  super
end