Sha256: 56638db20e9928fee709bc01e1fc995306ae72e54cb1a98094cdb1621fcfc0b8

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

module Inesita
  module Layout
    def self.included(base)
      base.include(Component)
      base.extend(ClassMethods)
      base.components :outlet
    end

    def with_outlet(outlet)
      @outlet = outlet
      self
    end

    module ClassMethods
      def create(outlet)
        new.with_outlet(outlet)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inesita-0.0.12 opal/inesita/layout.rb
inesita-0.0.11 opal/inesita/layout.rb