ruby-avm-library/lib/avm/image_quality.rb
2011-03-15 10:55:09 -04:00

15 lines
258 B
Ruby

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