Class: FFI::Chm::Struct::Topics::TopicsRecord

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/ffi-chm/struct/topics/topics_record.rb

Instance Method Summary collapse

Instance Method Details

#localObject



16
17
18
19
# File 'lib/ffi-chm/struct/topics/topics_record.rb', line 16

def local
  table = @chm.url_table(offset_in_urltbl)
  @chm.url_string(table.offset_in_urlstr).local
end

#set_context(chm) ⇒ Object

:nodoc:



21
22
23
# File 'lib/ffi-chm/struct/topics/topics_record.rb', line 21

def set_context(chm)# :nodoc:
  @chm = chm
end

#titleObject



12
13
14
# File 'lib/ffi-chm/struct/topics/topics_record.rb', line 12

def title
  @chm.string(offset_in_strings) rescue nil
end