lib/iterm2/protocol/image_sequence.rb
def to_h(output=nil)
        result = {
          width: @width,
          height: @height
        }

        if output == :terminal
          result[:preserveAspectRatio] = @preserve_aspect_ratio ? 1 : 0
        else
          result[:preserve_aspect_ratio] = @preserve_aspect_ratio
        end

        super(output).merge(result)
      end
# Return the arguments to this escape sequence.
#
# @param [nil, Symbol] output
#   The output format to return the Hash for.
#
#   Set to `:terminal` to format for an escape sequence.
# @return [Hash]
Return the arguments to this escape sequence.
Return the arguments to this escape sequence .
def to_h(output=nil)
        result = {
          width: @width,
          height: @height
        }
        if output == :terminal
          result[:preserveAspectRatio] = @preserve_aspect_ratio ? 1 : 0
        else
          result[:preserve_aspect_ratio] = @preserve_aspect_ratio
        end
        super(output).merge(result)
      end
def to_h ( output = nil ) result = { width : @width , height : @height } if output == :terminal result [ :preserveAspectRatio ] = @preserve_aspect_ratio ? 1 : 0 else result [ :preserve_aspect_ratio ] = @preserve_aspect_ratio end super ( output ) . merge ( result ) end
Return the arguments to this escape sequence.
Return the arguments to this escape sequence .
None
Hash
output
output The output format to return the Hash for. Set to `:terminal` to format for an escape sequence.
output The output format to return the Hash for . Set to ` : terminal ` to format for an escape sequence .