Class: Metro::EventFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/metro/events/event_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event, args = [], &block) ⇒ EventFactory

Returns a new instance of EventFactory.



9
10
11
12
13
# File 'lib/metro/events/event_factory.rb', line 9

def initialize(event,args=[],&block)
  @event = event
  @args = args
  @block = block
end

Instance Attribute Details

#argsObject (readonly) Also known as: buttons

Returns the value of attribute args.



5
6
7
# File 'lib/metro/events/event_factory.rb', line 5

def args
  @args
end

#blockObject (readonly)

Returns the value of attribute block.



5
6
7
# File 'lib/metro/events/event_factory.rb', line 5

def block
  @block
end

#eventObject (readonly)

Returns the value of attribute event.



5
6
7
# File 'lib/metro/events/event_factory.rb', line 5

def event
  @event
end