lib/jsi/util.rb in jsi-0.1.0 vs lib/jsi/util.rb in jsi-0.2.0
- old
+ new
@@ -1,6 +1,9 @@
module JSI
module Util
+ # a proc which does nothing
+ NOOP = -> (*_) { }
+
# returns a version of the given hash, in which any symbol keys are
# converted to strings. behavior on collisions is undefined (but in the
# future could take a block like
# ActiveSupport::HashWithIndifferentAccess#update)
#