Module: Voom::Presenters::DSL::Components::Mixins::Event

Included in:
Dialog, EventBase, List, Table, UserInterface
Defined in:
lib/voom/presenters/dsl/components/mixins/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#eventsObject (readonly)

Returns the value of attribute events.



7
8
9
# File 'lib/voom/presenters/dsl/components/mixins/event.rb', line 7

def events
  @events
end

Instance Method Details

#event(event, &block) ⇒ Object



8
9
10
11
# File 'lib/voom/presenters/dsl/components/mixins/event.rb', line 8

def event(event, &block)
  @events ||= []
  @events << Components::Event.new(parent: self, event: event, &block)
end