Class: FireRuby::Blob

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

Overview

This class represents Blob data fetched from the database. The class defers the actual loading of the blob until requested. The class is somewhat basic and maybe expanded upon in later releases.

Instance Method Summary collapse

Constructor Details

#initializeBlob

This is the constructor for the Blob class. This shouldn’t really be used outside of the FireRuby library.



1101
1102
# File 'lib/src.rb', line 1101

def initialize
end

Instance Method Details

#closeObject

This method closes a blob, freeing any resources associated with it.



1115
1116
# File 'lib/src.rb', line 1115

def close
end

#each {|segment| ... } ⇒ Object

This method loads the segments of a blob one after another. The blob segments are passed as strings to the block passed to the method.

Yields:

  • (segment)


1123
1124
1125
# File 'lib/src.rb', line 1123

def each
   yield segment
end

#to_sObject

This method loads the entire data set for a blob as a string.



1108
1109
# File 'lib/src.rb', line 1108

def to_s
end