lib/abstractivator/value_map.rb in abstractivator-0.12.0 vs lib/abstractivator/value_map.rb in abstractivator-0.13.0

- old
+ new

@@ -1,24 +1,18 @@ # like Enumerable#map, except if the receiver is not enumerable, # i.e., a single value, then it transforms the single value. -module Enumerable +class Array alias_method :value_map, :map end class NilClass def value_map nil end end class Object - def value_map - yield self - end -end - -class Struct def value_map yield self end end