Skip to content

Commit 24489b4

Browse files
committed
Don't expose the internals.
1 parent a096406 commit 24489b4

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/protocol/http/body/streamable.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def initialize(input, block)
4747
def schedule
4848
@fiber ||= Fiber.schedule do
4949
@block.call(@stream)
50-
5150
end
5251
end
5352

@@ -71,12 +70,6 @@ def initialize(block, input = nil)
7170
@output = nil
7271
end
7372

74-
attr :block
75-
76-
attr :input
77-
78-
attr :output
79-
8073
def stream?
8174
true
8275
end

test/protocol/http/body/streamable.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
end
2626
end
2727

28-
with '#block' do
29-
it "should wrap block" do
30-
expect(body.block).to be == block
31-
end
32-
end
33-
3428
with '#read' do
3529
it "can read the body" do
3630
expect(body.read).to be == "Hello"

0 commit comments

Comments
 (0)