Method: AudioAddict::Config.method_missing

Defined in:
lib/audio_addict/config.rb

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



8
9
10
11
12
13
14
15
# File 'lib/audio_addict/config.rb', line 8

def method_missing(name, *args, &_blk)
  if name.to_s.end_with? '='
    name = name[0..-2].to_sym
    properties[name] = args.first
  else
    properties[name]
  end
end