Iterates over keys and objects in a weakly referenced object
Iterates over keys and objects in a weakly referenced object
Iterates over keys and objects in a weakly referenced object
Iterates over the buffer, yielding each byte starting from offset
.
If count
is given, only count
bytes will be yielded.
Example:
IO::Buffer.for("Hello World").each_byte(2, 2) do |offset, byte| puts "#{offset}: #{byte}" end # 2: 108 # 3: 108
Validates typecode v
, returns true
or false
.
Main name of the switch.
Iterates over each option, passing the option to the block
.