Class: PDF::Reader::AbstractStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/reader/abstract_strategy.rb

Overview

DEPRECATED: this class was deprecated in version 0.11.0 and will

eventually be removed

Direct Known Subclasses

MetadataStrategy, PagesStrategy

Instance Method Summary collapse

Constructor Details

#initialize(ohash, receivers, options = {}) ⇒ AbstractStrategy

Returns a new instance of AbstractStrategy



9
10
11
12
13
14
15
16
# File 'lib/pdf/reader/abstract_strategy.rb', line 9

def initialize(ohash, receivers, options = {})
  @ohash, @options = ohash, options
  if receivers.is_a?(Array)
    @receivers = receivers
  else
    @receivers = [receivers]
  end
end