Method: Proselytism::Config#method_missing

Defined in:
lib/proselytism/proselytism.rb

#method_missing(method = nil, value = nil, &block) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/proselytism/proselytism.rb', line 18

def method_missing(method=nil, value=nil, &block)
  if method.to_s.match(/=$/)
    @options[method.to_s.gsub(/=$/,'')] = value
  else
    @options[method.to_s]
  end
end