Method: Webmaster::Configuration#method_missing

Defined in:
lib/webmaster/configuration.rb

#method_missing(method, *args, &block) ⇒ Object

Responds to attribute query or attribute clear



100
101
102
103
104
105
106
107
108
109
# File 'lib/webmaster/configuration.rb', line 100

def method_missing(method, *args, &block) # :nodoc:
  case method.to_s
  when /^(.*)\?$/
    return !!self.send($1.to_s)
  when /^clear_(.*)$/
    self.send("#{$1.to_s}=", nil)
  else
    super
  end
end