Sha256: 6dad906e074cccf557d739684178d639bc8f214d72aae203f8008f561cbe22d6

Contents?: true

Size: 371 Bytes

Versions: 18

Compression:

Stored size: 371 Bytes

Contents

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
inesita-1.0.pre.9 opal/inesita/component/class_methods.rb
inesita-1.0.pre.8 opal/inesita/component/class_methods.rb
inesita-1.0.pre.7 opal/inesita/component/class_methods.rb
inesita-1.0.pre.6 opal/inesita/component/class_methods.rb
inesita-1.0.pre.5 opal/inesita/component/class_methods.rb
inesita-1.0.pre.4 opal/inesita/component/class_methods.rb
inesita-1.0.pre.3 opal/inesita/component/class_methods.rb
inesita-1.0.pre.2 opal/inesita/component/class_methods.rb
inesita-1.0.pre.1 opal/inesita/component/class_methods.rb
inesita-0.9.2 opal/inesita/component/class_methods.rb
inesita-0.9.1 opal/inesita/component/class_methods.rb
inesita-0.9.0 opal/inesita/component/class_methods.rb
inesita-0.8.2 opal/inesita/component/class_methods.rb
inesita-0.8.1 opal/inesita/component/class_methods.rb
inesita-0.7.0 opal/inesita/component/class_methods.rb
inesita-0.6.1 opal/inesita/component/class_methods.rb
inesita-0.6.0 opal/inesita/component/class_methods.rb
inesita-0.6.0.beta.1 opal/inesita/component/class_methods.rb