Parent

Files

Class/Module Index [+]

Quicksearch

Ganapati::HFile

Public Class Methods

new(client, handle, pathname) click to toggle source
# File lib/ganapati/hfile.rb, line 4
def initialize(client, handle, pathname)
  @client = client
  @handle = handle
  @pathname = pathname
end

Public Instance Methods

close() click to toggle source
# File lib/ganapati/hfile.rb, line 19
def close
  call :close
end
length() click to toggle source
# File lib/ganapati/hfile.rb, line 27
def length
  stat.length
end
read(offset=0, size=nil) click to toggle source
# File lib/ganapati/hfile.rb, line 14
def read(offset=0, size=nil)
  size ||= stat.length
  call :read, offset, size
end
stat() click to toggle source
# File lib/ganapati/hfile.rb, line 23
def stat
  @client.stat(@pathname)
end
write(data) click to toggle source
# File lib/ganapati/hfile.rb, line 10
def write(data)
  call :write, data
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.