Method: Pask::Event#initialize
- Defined in:
- lib/pask/event.rb
#initialize(name, other) ⇒ Event
Returns a new instance of Event.
8 9 10 11 12 13 14 15 |
# File 'lib/pask/event.rb', line 8 def initialize(name, other) @name = name @other = other @created_at = Time.now @signature = nil @to_f = nil @emit_by = binding.eval "self" end |