struct Magic::Info

Overview

Represents File Magic details

Defined in:

magic/magic.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(mime_type : String, encoding : String, name : String) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(mime_type _mime_type = @mime_type, encoding _encoding = @encoding, name _name = @name) #

[View source]
def encoding : String #

def mime_type : String #

def name : String #

def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]