lib/option.rb in option-0.2.0 vs lib/option.rb in option-0.3.0
- old
+ new
@@ -27,11 +27,11 @@
def get_or_else(&blk)
get
end
- def foreach(&blk)
+ def each(&blk)
blk.call(get)
nil
end
@@ -84,10 +84,10 @@
def get_or_else(&blk)
blk.call
end
- def foreach(&blk)
+ def each(&blk)
nil
end
def or_nil
nil