Sha256: b1543385e3c8a36ee616e12676e38e459f0e64dad5d26dfcfa30ca8c9c22abc6

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

class Array 
  # Formats an array into a string suitable for a CAP message.
  #
  # @return [String]
  # @example
  #   [ "one", "two words", "three" ].to_s_for_cap # => "one \"two words\" three"
  # @see String#unpack_cap_list
  def to_s_for_cap
    self.map{ |element| element.to_s.for_cap_list }.join( ' ' )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rcap-1.3.1 lib/extensions/array.rb