Method: Alula::Processor.mimetype
- Defined in:
- lib/alula/processor.rb
.mimetype(*mimetypes) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/alula/processor.rb', line 11 def self.mimetype(*mimetypes) (class << self; self; end).send(:define_method, "mimetypes") do mimetypes.collect do |m| if m.kind_of?(String) Regexp.new("^#{m}$") else m end end end end |