Class: Zim::StringList
- Inherits:
-
Array
- Object
- Array
- Zim::StringList
- Defined in:
- lib/zim/structs.rb
Instance Method Summary collapse
-
#initialize(f) ⇒ StringList
constructor
A new instance of StringList.
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 |