struct

Smith::Mentions::Embedded

Inherits Struct < Value < Object

A file or directory that made it into the prompt. path is as written, so it matches what the user typed.

Constructors

new(path : String, lines : Int32, truncated : Bool = false, media_type : String | Nil = nil, bytes : Int32 | Nil = nil)
Source

Instance methods

bytes
Source
lines
Source
media?
Source
media_type

Set for an attachment, nil for text and directories. lines says nothing about a PNG, so the renderers need something else to print.

Source
path
Source
truncated?
Source