Spot the difference

on Nov 05, 2008

This does what you’d expect:



%w(msgtype state chstat chstatmsg qpstat qpstatmsg merchant merchantemail cardtype).each do |attr|
  define_method(attr) do
    params[attr]
  end
end


This does not:



fo…
Continue reading