Skip to content

Commit

Permalink
Allowed CompositeSexpProcessor to be more ducktypey
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/sexp_processor/dev/": change = 4344]
  • Loading branch information
zenspider committed Oct 13, 2008
1 parent c1add36 commit c1366c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/composite_sexp_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c1366c1

Please sign in to comment.