class Xlsxrb::Ooxml::Cfb::DirEntry
Represents a directory entry in a Compound File.
Attributes
child_id
[RW]
untyped
clsid
[RW]
untyped
color
[RW]
untyped
created_time
[RW]
untyped
entry_id
[RW]
untyped
left_sibling_id
[RW]
untyped
modified_time
[RW]
untyped
name
[RW]
untyped
right_sibling_id
[RW]
untyped
size
[RW]
untyped
start_sector
[RW]
untyped
state_flags
[RW]
untyped
type
[RW]
untyped
Public Class Methods
(?name: untyped, ?type: untyped, ?start_sector: untyped, ?size: untyped) → untyped
Source
# File lib/xlsxrb/ooxml/cfb.rb, line 30 def initialize(name: "", type: OBJ_UNKNOWN, start_sector: ENDOFCHAIN, size: 0) @name = name @type = type @color = 0 # Red / Black (0 is acceptable across OLE implementations) @left_sibling_id = NOSTREAM @right_sibling_id = NOSTREAM @child_id = NOSTREAM @clsid = "\x00".b * 16 @state_flags = 0 @created_time = 0 @modified_time = 0 @start_sector = start_sector @size = size @entry_id = 0 end
Public Instance Methods
() → untyped
Source
# File lib/xlsxrb/ooxml/cfb.rb, line 50 def root? @type == OBJ_ROOT end
() → untyped
Source
# File lib/xlsxrb/ooxml/cfb.rb, line 54 def storage? @type == OBJ_STORAGE end
() → untyped
Source
# File lib/xlsxrb/ooxml/cfb.rb, line 46 def stream? @type == OBJ_STREAM end