Method: MediaTypes.register

Defined in:
lib/media_types/integrations.rb

.register(registerable) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/media_types/integrations.rb', line 18

INTEGRATION_METHODS.each do |method|
  define_singleton_method method do |*args, &block|
    (integrations || {}).fetch(method) { [] }.each do |integration|
      integration.send(method, *args, &block)
    end
  end

end