Sha256: 78cc48cf2ea0f33ddfa6a13b1329ebbbec5f75ba01096dfca4147fe4bdb9fca6

Contents?: true

Size: 439 Bytes

Versions: 14

Compression:

Stored size: 439 Bytes

Contents

require_relative '../event'

module Voom
  module Presenters
    module DSL
      module Components
        module Mixins
          module Event
            attr_reader :events
            def event(event, **params, &block)
              @events ||= []
              @events << Components::Event.new(parent: self, event: event, context: context&.merge(params), &block)
            end
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.6 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.5 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.4 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.3 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.2 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.1 lib/voom/presenters/dsl/components/mixins/event.rb
voom-presenters-0.1.0 lib/voom/presenters/dsl/components/mixins/event.rb