We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Window#inspect
1 parent 1e97965 commit f93b454Copy full SHA for f93b454
lib/protocol/http2/window.rb
@@ -72,8 +72,10 @@ def limited?
72
end
73
74
def inspect
75
- "\#<#{self.class} used=#{@used} available=#{@available} capacity=#{@capacity}>"
+ "\#<#{self.class} available=#{@available} used=#{@used} capacity=#{@capacity}#{limited? ? " limited" : nil}>"
76
77
+
78
+ alias to_s inspect
79
80
81
# This is a window which efficiently maintains a desired capacity.
@@ -108,7 +110,7 @@ def limited?
108
110
109
111
112
- "\#<#{self.class} used=#{@used} available=#{@available} capacity=#{@capacity} desired=#{@desired}>"
113
+ "\#<#{self.class} available=#{@available} used=#{@used} capacity=#{@capacity} desired=#{@desired} #{limited? ? "limited" : nil}>"
114
115
116
0 commit comments