Class: Zim::StringList

Inherits:
Array
  • Object
show all
Defined in:
lib/zim/structs.rb

Instance Method Summary collapse

Constructor Details

#initialize(f) ⇒ StringList

Returns a new instance of StringList.



46
47
48
49
50
51
52
53
54
# File 'lib/zim/structs.rb', line 46

def initialize(f)
  super()

  str = nil
  begin
    str = f.read_cstr
    self << str unless str.length == 0
  end while str.length > 0
end