Class: PDF::Reader::PrintReceiver

Inherits:
Object
  • Object
show all
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 Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(methodname, *args) ⇒ Object

: (Symbol, *untyped) -> void



17
18
19
# File 'lib/pdf/reader/print_receiver.rb', line 17

def method_missing(methodname, *args)
  puts "#{methodname} => #{args.inspect}"
end

Instance Method Details

#respond_to?(meth) ⇒ Boolean

: (untyped) -> bool

Returns:

  • (Boolean)


12
13
14
# File 'lib/pdf/reader/print_receiver.rb', line 12

def respond_to?(meth)
  true
end