ruby-avm-library/lib/avm/image_quality.rb

15 lines
258 B
Ruby
Raw Normal View History

2011-03-15 14:55:09 +00:00
module AVM
module ImageQuality
%w{Good Moderate Poor}.each do |type|
klass = Class.new do
def to_s
self.class.to_s.split('::').last
end
end
AVM::ImageQuality.const_set(type.to_sym, klass)
end
end
end