Skip to content

Commit

Permalink
Don't expose the internals.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Sep 10, 2024
1 parent a096406 commit 24489b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions lib/protocol/http/body/streamable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def initialize(input, block)
def schedule
@fiber ||= Fiber.schedule do
@block.call(@stream)

end
end

Expand All @@ -71,12 +70,6 @@ def initialize(block, input = nil)
@output = nil
end

attr :block

attr :input

attr :output

def stream?
true
end
Expand Down
6 changes: 0 additions & 6 deletions test/protocol/http/body/streamable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
end
end

with '#block' do
it "should wrap block" do
expect(body.block).to be == block
end
end

with '#read' do
it "can read the body" do
expect(body.read).to be == "Hello"
Expand Down

0 comments on commit 24489b4

Please sign in to comment.