Skip to content

Commit

Permalink
added a generic inspector that catches everything
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmike committed Jan 16, 2010
1 parent 36633dc commit 511617b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/pdf/inspector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require "pdf/inspector/extgstate"
require "pdf/inspector/graphics"
require "pdf/inspector/page"
require "pdf/inspector/generic"

module PDF
class Inspector
Expand Down
19 changes: 19 additions & 0 deletions lib/pdf/inspector/generic.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module PDF
class Inspector
class Generic < Inspector
attr_reader :calls

def initialize
@calls = []
end

def method_missing(*args)
@calls << args
end

def respond_to?(*args)
true
end
end
end
end

0 comments on commit 511617b

Please sign in to comment.