Skip to content
Browse files

Revert "make extending Stream with mixins easier"

This reverts commit 962d3f5.
  • Loading branch information...
1 parent 962d3f5 commit d17d01376d34e4fbcd292dd586567d722ba663e4 @rkh rkh committed
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/sinatra/base.rb
View
7 lib/sinatra/base.rb
@@ -243,11 +243,9 @@ def self.defer(*) yield end
def initialize(scheduler = self.class, close = true, &back)
@back, @scheduler, @callback, @close = back.to_proc, scheduler, nil, close
- super()
end
def close
- return super if defined? super
@scheduler.schedule { @callback.call if @callback }
end
@@ -269,13 +267,10 @@ def <<(data)
end
def callback(&block)
- return super if defined? super
@callback = block
end
- def errback
- super if defined? super
- end
+ alias errback callback
end
# Allows to start sending data to the client even though later parts of

0 comments on commit d17d013

Please sign in to comment.
Something went wrong with that request. Please try again.