Class: Amiba::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/amiba/configuration.rb

Class Method Summary collapse

Class Method Details

.method_missing(name, *args, &block) ⇒ Object

Raises:

  • (ArgumentError)


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