Method: RBStarbound::SBAsset6.get
- Defined in:
- lib/rbstarbound/sbasset6.rb
.get(path) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/rbstarbound/sbasset6.rb', line 14 def self.get(path) raise SBAsset6Error, 'No package file given' if @package.nil? offset, length = @index[path] rewind_to(offset) @package.read(length) end |