@@ -15,13 +15,13 @@ module Buffer
1515 # used as a channel buffer should extend this class.
1616 class Base < Synchronization ::LockableObject
1717
18- # @!macro [attach] channel_buffer_capacity_reader
18+ # @!macro channel_buffer_capacity_reader
1919 #
2020 # The maximum number of values which can be {#put} onto the buffer
2121 # it becomes full.
2222 attr_reader :capacity
2323
24- # @!macro [attach] channel_buffer_initialize
24+ # @!macro channel_buffer_initialize
2525 #
2626 # Creates a new buffer.
2727 def initialize ( *args )
@@ -35,7 +35,7 @@ def initialize(*args)
3535 end
3636 end
3737
38- # @!macro [attach] channel_buffer_blocking_question
38+ # @!macro channel_buffer_blocking_question
3939 #
4040 # Predicate indicating if this buffer will block {#put} operations
4141 # once it reaches its maximum capacity.
@@ -45,14 +45,14 @@ def blocking?
4545 true
4646 end
4747
48- # @!macro [attach] channel_buffer_size_reader
48+ # @!macro channel_buffer_size_reader
4949 #
5050 # The number of items currently in the buffer.
5151 def size
5252 synchronize { ns_size }
5353 end
5454
55- # @!macro [attach] channel_buffer_empty_question
55+ # @!macro channel_buffer_empty_question
5656 #
5757 # Predicate indicating if the buffer is empty.
5858 #
@@ -63,7 +63,7 @@ def empty?
6363 synchronize { ns_empty? }
6464 end
6565
66- # @!macro [attach] channel_buffer_full_question
66+ # @!macro channel_buffer_full_question
6767 #
6868 # Predicate indicating if the buffer is full.
6969 #
@@ -74,7 +74,7 @@ def full?
7474 synchronize { ns_full? }
7575 end
7676
77- # @!macro [attach] channel_buffer_put
77+ # @!macro channel_buffer_put
7878 #
7979 # Put an item onto the buffer if possible. If the buffer is open
8080 # but not able to accept the item the calling thread will block
@@ -89,7 +89,7 @@ def put(item)
8989 raise NotImplementedError
9090 end
9191
92- # @!macro [attach] channel_buffer_offer
92+ # @!macro channel_buffer_offer
9393 #
9494 # Put an item onto the buffer if possible. If the buffer is open but
9595 # unable to add an item, probably due to being full, the method will
@@ -107,7 +107,7 @@ def offer(item)
107107 raise NotImplementedError
108108 end
109109
110- # @!macro [attach] channel_buffer_take
110+ # @!macro channel_buffer_take
111111 #
112112 # Take an item from the buffer if one is available. If the buffer
113113 # is open and no item is available the calling thread will block
@@ -123,7 +123,7 @@ def take
123123 raise NotImplementedError
124124 end
125125
126- # @!macro [attach] channel_buffer_next
126+ # @!macro channel_buffer_next
127127 #
128128 # Take the next "item" from the buffer and also return a boolean
129129 # indicating if "more" items can be taken. Used for iterating
@@ -152,7 +152,7 @@ def next
152152 raise NotImplementedError
153153 end
154154
155- # @!macro [attach] channel_buffer_poll
155+ # @!macro channel_buffer_poll
156156 #
157157 # Take the next item from the buffer if one is available else return
158158 # immediately. Failing to return a value does not necessarily
@@ -166,7 +166,7 @@ def poll
166166 raise NotImplementedError
167167 end
168168
169- # @!macro [attach] channel_buffer_close
169+ # @!macro channel_buffer_close
170170 #
171171 # Close the buffer, preventing new items from being added. Once a
172172 # buffer is closed it cannot be opened again.
@@ -179,7 +179,7 @@ def close
179179 end
180180 end
181181
182- # @!macro [attach] channel_buffer_closed_question
182+ # @!macro channel_buffer_closed_question
183183 #
184184 # Predicate indicating is this buffer closed.
185185 #
0 commit comments