class XlsxParser::Book

Defined in:

xlsx-parser/book.cr

Constant Summary

TIME_1900 = Time.utc(1899, 12, 30)
TIME_1904 = Time.utc(1904, 1, 1)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(file : IO | String, check_file_extension = true) #

Open given file/filename and store shared strings data


[View source]

Class Method Detail

def self.open(file : IO | String, check_file_extension = true, & : Book -> T) : T forall T #

Open given file/filename, yield the book and close it afterwards


[View source]

Instance Method Detail

def base_time : Time #

[View source]
def close : Nil #

Close previously opened given file/filename


[View source]
def shared_strings : Array(String) #

[View source]
def sheet(name : String) : Sheet | Nil #

Return sheet with given name


[View source]
def sheet_exists?(name : String) : Bool #

Return true if sheet with given name exists otherwise return false


[View source]
def sheets : Array(Sheet) #

Return a array of sheets


[View source]
def style_types : Array(Styles::Format) #

[View source]
def zip : Compress::Zip::File #

[View source]