Class: PAKFile::FileEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/pakspy.rb

Overview

Base class for all files handled by PAKFile

Direct Known Subclasses

FileEntryPAK, FileEntrySystem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pack) ⇒ FileEntry

pack has to be PAKFile that owns this entry



180
181
182
183
# File 'lib/pakspy.rb', line 180

def initialize(pack)
  @pack = pack
  @name = ""
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



176
177
178
# File 'lib/pakspy.rb', line 176

def name
  @name
end

Instance Method Details

#readObject



185
186
187
188
# File 'lib/pakspy.rb', line 185

def read
  puts "This is just a base class..."
  ""
end