Class: ZSteg::Result::OpenStego

Inherits:
Object
  • Object
show all
Defined in:
lib/zsteg/result.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.read(io) ⇒ Object



14
15
16
17
18
# File 'lib/zsteg/result.rb', line 14

def self.read io
  super.tap do |r|
    r.fname = io.read(r.fname_len) if r.fname_len
  end
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/zsteg/result.rb', line 20

def to_s
  super.sub(/^<Result::/,'').sub(/>$/,'').bright_red
end