opal/inesita/component/class_methods.rb
module Inesita
module Component
module ClassMethods
def mount_to(element)
new.mount_to(element)
end
def inject(clazz, opts = {})
method_name = opts[:as] || clazz.to_s.downcase
@injections ||= {}
@injections[method_name] = clazz
end
def injections
@injections || {}
end
end
end
end