Class: Xlsxrb::Ooxml::Cfb::DirEntry
- Inherits:
-
Object
- Object
- Xlsxrb::Ooxml::Cfb::DirEntry
- Defined in:
- lib/xlsxrb/ooxml/cfb.rb,
sig/generated/xlsxrb/ooxml/cfb.rbs
Overview
Represents a directory entry in a Compound File.
Instance Attribute Summary collapse
- #child_id ⇒ Object
- #clsid ⇒ Object
- #color ⇒ Object
- #created_time ⇒ Object
- #entry_id ⇒ Object
- #left_sibling_id ⇒ Object
- #modified_time ⇒ Object
- #name ⇒ Object
- #right_sibling_id ⇒ Object
- #size ⇒ Object
- #start_sector ⇒ Object
- #state_flags ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(name: "", type: OBJ_UNKNOWN, start_sector: ENDOFCHAIN, size: 0) ⇒ DirEntry
constructor
A new instance of DirEntry.
- #root? ⇒ Boolean
- #storage? ⇒ Boolean
- #stream? ⇒ Boolean
Constructor Details
#initialize(name: "", type: OBJ_UNKNOWN, start_sector: ENDOFCHAIN, size: 0) ⇒ DirEntry
Returns a new instance of DirEntry.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# 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 |
Instance Attribute Details
#child_id ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def child_id @child_id end |
#clsid ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def clsid @clsid end |
#color ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def color @color end |
#created_time ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def created_time @created_time end |
#entry_id ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def entry_id @entry_id end |
#left_sibling_id ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def left_sibling_id @left_sibling_id end |
#modified_time ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def modified_time @modified_time end |
#name ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def name @name end |
#right_sibling_id ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def right_sibling_id @right_sibling_id end |
#size ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def size @size end |
#start_sector ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def start_sector @start_sector end |
#state_flags ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def state_flags @state_flags end |
#type ⇒ Object
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def type @type end |
Instance Method Details
#storage? ⇒ Boolean
54 55 56 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 54 def storage? @type == OBJ_STORAGE end |
#stream? ⇒ Boolean
46 47 48 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 46 def stream? @type == OBJ_STREAM end |