lib/iterm2/protocol/formatter.rb
# Get the key-value pair formatted as an iTerm2 escape sequence.
#
# If the value is a Hash, it will be formatted as `key=value` with each pair being delimited
# by a semicolon (`;`).
#
# @return [String]
Get the key-value pair formatted as an iTerm2 escape sequence.
If the value is a Hash, it will be formatted as `key=value` with each pair being delimited
by a semicolon (`;`).
Get the key - value pair formatted as an iTerm2 escape sequence . If the value is a Hash it will be formatted as ` key = value ` with each pair being delimited by a semicolon ( ` ; ` ) .
def to_s
        [].tap do |segments|
          segments << escape_sequence
          segments << "1337;"
          segments << @key
          segments << "="
          segments << format_value(@value)
          segments << ":#{@content}" unless @content.nil?
          segments << st_sequence
        end.join
      end
def to_s [ ] . tap do | segments | segments << escape_sequence segments << "1337;" segments << @key segments << "=" segments << format_value ( @value ) segments << ":#{@content}" unless @content . nil? segments << st_sequence end . join end
Get the key-value pair formatted as an iTerm2 escape sequence.
Get the key - value pair formatted as an iTerm2 escape sequence .
None
String