Class: ZSteg::Checker::Zlib::Result
- Inherits:
-
Struct
- Object
- Struct
- ZSteg::Checker::Zlib::Result
- Defined in:
- lib/zsteg/checker/zlib.rb
Constant Summary collapse
- MAX_SHOW_SIZE =
100
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
10 11 12 |
# File 'lib/zsteg/checker/zlib.rb', line 10 def data @data end |
#offset ⇒ Object
Returns the value of attribute offset
10 11 12 |
# File 'lib/zsteg/checker/zlib.rb', line 10 def offset @offset end |
Instance Method Details
#to_s ⇒ Object
13 14 15 16 17 |
# File 'lib/zsteg/checker/zlib.rb', line 13 def to_s x = data x=x[0,MAX_SHOW_SIZE] + "..." if x.size > MAX_SHOW_SIZE "zlib: data=#{x.inspect.bright_red}, offset=#{offset}, size=#{data.size}" end |