Sha256: 13bbdd718618355c36b36e726c69694df7bd1c3f30dfcc7d7b7daa1a63961917

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        module Mixins
          module Append

            def <<(comp)
              @components << comp
            end

            def yield_to(*args, &block)
              instance_exec(*args, &block) if block_given?
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/mixins/append.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/mixins/append.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/mixins/append.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/mixins/append.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/mixins/append.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/mixins/append.rb