Class: Nanoc::Core::Checksummer::VerboseDigest

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc/core/checksummer.rb

Instance Method Summary collapse

Constructor Details

#initializeVerboseDigest

Returns a new instance of VerboseDigest.



11
12
13
# File 'lib/nanoc/core/checksummer.rb', line 11

def initialize
  @str = +''
end

Instance Method Details

#to_sObject



19
20
21
# File 'lib/nanoc/core/checksummer.rb', line 19

def to_s
  @str
end

#update(str) ⇒ Object



15
16
17
# File 'lib/nanoc/core/checksummer.rb', line 15

def update(str)
  @str << str
end