Method: Net::SSH::Buffer#write_bool

Defined in:
lib/net/ssh/buffer.rb

#write_bool(*b) ⇒ Object

Writes each argument to the buffer as a (C-style) boolean, with 1 meaning true, and 0 meaning false. Does not alter the read position. Returns the buffer object.



428
429
430
431
# File 'lib/net/ssh/buffer.rb', line 428

def write_bool(*b)
  b.each { |v| @content << (v ? "\1" : "\0") }
  self
end