Skip to content

Commit

Permalink
Merge branch 'master' of github.com:seancribbs/webmachine-ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Sep 1, 2011
2 parents 36c2cc9 + 590ab41 commit 9940b48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/webmachine/streaming.rb
Expand Up @@ -9,15 +9,15 @@ class EnumerableEncoder < StreamingEncoder
include Enumerable

def each
body.each do |block|
yield @resource.send(@encoder, resource.send(@charsetter, block))
@body.each do |block|
yield @resource.send(@encoder, @resource.send(@charsetter, block))
end
end
end

class CallableEncoder < StreamingEncoder
def call
@resource.send(@encoder, @resource.send(@charsetter, body.call))
@resource.send(@encoder, @resource.send(@charsetter, @body.call))
end

def to_proc
Expand Down

0 comments on commit 9940b48

Please sign in to comment.