Class: Compass::Fontcustom::Configurable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/compass/fontcustom/configurable.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/compass/fontcustom/configurable.rb', line 22

def method_missing(meth, *args)
  @config ||= {}
  if meth.to_s =~ /=$/
    sym = meth.to_s[0...-1].to_sym
    @config[sym] = args.first
  else
    @config[meth]
  end
end