Class: PDF::Reader::Stream
- Inherits:
-
String
- Object
- String
- PDF::Reader::Stream
- Defined in:
- lib/pdf/reader/stream.rb
Overview
An internal PDF::Reader class that represents a single token from a PDF file.
Behaves exactly like a Ruby String - it basically exists for convenience.
Instance Attribute Summary collapse
-
#hash ⇒ Object
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(hash, val) ⇒ Stream
constructor
Creates a new token with the specified value.
Constructor Details
#initialize(hash, val) ⇒ Stream
Creates a new token with the specified value
35 36 37 38 |
# File 'lib/pdf/reader/stream.rb', line 35 def initialize (hash, val) @hash = hash super val end |
Instance Attribute Details
#hash ⇒ Object
Returns the value of attribute hash.
32 33 34 |
# File 'lib/pdf/reader/stream.rb', line 32 def hash @hash end |