module Castaway::Effect

Public Class Methods

invoke(name, element, options) click to toggle source
# File lib/castaway/effect.rb, line 9
def self.invoke(name, element, options)
  @effects.fetch(name).call(element, options)
end
register(name, &implementation) click to toggle source
# File lib/castaway/effect.rb, line 5
def self.register(name, &implementation)
  @effects[name] = implementation
end