Class: Amiba::Configuration
- Inherits:
-
Object
- Object
- Amiba::Configuration
- Defined in:
- lib/amiba/configuration.rb
Class Method Summary collapse
Class Method Details
.method_missing(name, *args, &block) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/amiba/configuration.rb', line 8 def method_missing(name, *args, &block) raise ArgumentError if args.length > 1 if name.to_s[-1] == '=' write_setting(name[0..-2].to_sym, args[0]) else read_setting(name) end end |