Sha256: d8ba13c0eae531eebd91700cb89c9983b32930468605b1c34d815b1a0e6dc2c8

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

module Discorb
  #
  # Represents an image.
  class Image
    #
    # Initializes a new Image.
    #
    # @param [#read, String] source The IO source or path of the image.
    # @param [String] type The MIME type of the image.
    def initialize: (untyped | String source, ?String? `type`) -> void

    #
    # Formats the image as a Discord style.
    #
    # @return [String] The image as a Discord style.
    %a{pure}
    def to_s: -> String

    %a{pure}
    def inspect: -> String
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discorb-0.20.0 sig/discorb/image.rbs
discorb-0.19.0 sig/discorb/image.rbs