Method: Riddle::Client::Message#append_array
- Defined in:
- lib/riddle/client/message.rb
#append_array(array) ⇒ Object
Append an array of strings - first appends the length of the array, then each item’s length and value.
59 60 61 62 63 |
# File 'lib/riddle/client/message.rb', line 59 def append_array(array) append_int(array.length) array.each { |item| append_string(item) } end |