class
XlsxParser::Book
- XlsxParser::Book
- Reference
- Object
Defined in:
xlsx-parser/book.crConstant Summary
-
TIME_1900 =
Time.utc(1899, 12, 30) -
TIME_1904 =
Time.utc(1904, 1, 1)
Constructors
-
.new(file : IO | String, check_file_extension = true)
Open given file/filename and store shared strings data
Class Method Summary
-
.open(file : IO | String, check_file_extension = true, & : Book -> T) : T forall T
Open given file/filename, yield the book and close it afterwards
Instance Method Summary
- #base_time : Time
-
#close : Nil
Close previously opened given file/filename
- #shared_strings : Array(String)
-
#sheet(name : String) : Sheet | Nil
Return sheet with given name
-
#sheet_exists?(name : String) : Bool
Return true if sheet with given name exists otherwise return false
-
#sheets : Array(Sheet)
Return a array of sheets
- #style_types : Array(Styles::Format)
- #zip : Compress::Zip::File
Constructor Detail
def self.new(file : IO | String, check_file_extension = true)
#
Open given file/filename and store shared strings data
Class Method Detail
Open given file/filename, yield the book and close it afterwards
Instance Method Detail
def sheet_exists?(name : String) : Bool
#
Return true if sheet with given name exists otherwise return false