Permalink
Browse files

Allowed CompositeSexpProcessor to be more ducktypey

[git-p4: depot-paths = "//src/sexp_processor/dev/": change = 4344]
  • Loading branch information...
1 parent c1add36 commit c1366c1788791a42383825cc73f232fa6d4b1b3b @zenspider zenspider committed Oct 13, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/composite_sexp_processor.rb
View
2 lib/composite_sexp_processor.rb
@@ -26,7 +26,7 @@ def initialize # :nodoc:
def <<(processor)
raise ArgumentError, "Can only add sexp processors" unless
- SexpProcessor === processor
+ SexpProcessor === processor || processor.respond_to?(:process)
@processors << processor
end

0 comments on commit c1366c1

Please sign in to comment.