Class: Rubyfb::Blob
- Inherits:
-
Object
- Object
- Rubyfb::Blob
- 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
-
#close ⇒ Object
This method closes a blob, freeing any resources associated with it.
-
#each {|segment| ... } ⇒ Object
This method loads the segments of a blob one after another.
-
#initialize ⇒ Blob
constructor
This is the constructor for the Blob class.
-
#to_s ⇒ Object
This method loads the entire data set for a blob as a string.
Constructor Details
#initialize ⇒ Blob
This is the constructor for the Blob class. This shouldn’t really be used outside of the FireRuby library.
1180 1181 |
# File 'lib/src.rb', line 1180 def initialize end |
Instance Method Details
#close ⇒ Object
This method closes a blob, freeing any resources associated with it.
1194 1195 |
# File 'lib/src.rb', line 1194 def close end |
#each {|segment| ... } ⇒ Object
This method loads the segments of a blob one after another. The blob segments are passed as BINARY strings to the block passed to the method.
1202 1203 1204 |
# File 'lib/src.rb', line 1202 def each yield segment end |
#to_s ⇒ Object
This method loads the entire data set for a blob as a string.
1187 1188 |
# File 'lib/src.rb', line 1187 def to_s end |