Class: PDF::Reader::PrintReceiver
- Inherits:
-
Object
- Object
- PDF::Reader::PrintReceiver
- Defined in:
- lib/pdf/reader/print_receiver.rb
Overview
A simple receiver that prints all operaters and parameters in the content stream of a single page.
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
Instance Method Summary collapse
-
#initialize ⇒ PrintReceiver
constructor
A new instance of PrintReceiver.
- #method_missing(methodname, *args) ⇒ Object
- #respond_to?(meth) ⇒ Boolean
Constructor Details
#initialize ⇒ PrintReceiver
Returns a new instance of PrintReceiver.
11 12 13 |
# File 'lib/pdf/reader/print_receiver.rb', line 11 def initialize @callbacks = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(methodname, *args) ⇒ Object
19 20 21 |
# File 'lib/pdf/reader/print_receiver.rb', line 19 def method_missing(methodname, *args) puts "#{methodname} => #{args.inspect}" end |
Instance Attribute Details
#callbacks ⇒ Object
Returns the value of attribute callbacks.
9 10 11 |
# File 'lib/pdf/reader/print_receiver.rb', line 9 def callbacks @callbacks end |
Instance Method Details
#respond_to?(meth) ⇒ Boolean
15 16 17 |
# File 'lib/pdf/reader/print_receiver.rb', line 15 def respond_to?(meth) true end |