Class: PDF::Reader::Stream

Inherits:
String
  • Object
show all
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

Instance Method Summary collapse

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

#hashObject

Returns the value of attribute hash.



32
33
34
# File 'lib/pdf/reader/stream.rb', line 32

def hash
  @hash
end