lib/microevent.rb in microevent-1.1.0 vs lib/microevent.rb in microevent-1.1.1
- old
+ new
@@ -1,6 +1,8 @@
+# frozen_string_literal: true
+
module MicroEvent
- VERSION = "1.1.0".freeze
+ VERSION = "1.1.1"
def bind(event, &fn)
@_ ||= Hash.new{ |h,k| h[k] = [] }
fn ? @_[event] << fn : raise(ArgumentError, "no block given")
end