lib/digest/simple.rb in digest-simple-1.0.0 vs lib/digest/simple.rb in digest-simple-1.1.0

- old
+ new

@@ -1,11 +1,9 @@ require 'digest' module Digest class Simple < Class - VERSION = "1.0.0" - def initialize @buffer = "" end def reset @@ -16,21 +14,9 @@ def update(str) @buffer += str self end alias << update - - def digest(str=nil) - if str - reset - update(str) - v = finish - reset - v - else - dup.send :finish - end - end def block_length 0 end