states.rb revision ec96c6e3605c2e9eb5c0113e4e1b07b3b5228c8c
STATES = %w(pending downloading processing done failed)
included do
STATES.each do |state|
eval "def #{state}?; state == '#{state}'; end"
end
end
end
end