Class: Metro::EventFactory
- Inherits:
-
Object
- Object
- Metro::EventFactory
- Defined in:
- lib/metro/events/event_factory.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
(also: #buttons)
readonly
Returns the value of attribute args.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(event, args = [], &block) ⇒ EventFactory
constructor
A new instance of EventFactory.
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
#args ⇒ Object (readonly) Also known as:
Returns the value of attribute args.
5 6 7 |
# File 'lib/metro/events/event_factory.rb', line 5 def args @args end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
5 6 7 |
# File 'lib/metro/events/event_factory.rb', line 5 def block @block end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
5 6 7 |
# File 'lib/metro/events/event_factory.rb', line 5 def event @event end |