lib/rio/if/grande.rb in rio-0.3.6 vs lib/rio/if/grande.rb in rio-0.3.7
- old
+ new
@@ -599,20 +599,26 @@
#
# See also Rio#records, Rio#lines, Rio#each, Rio#[]
#
def getline() target.getline() end
- # Reads and returns the next record from a Rio, honoring the grande selection methods.
+ # Reads and returns the next record or entry from a Rio,
+ # honoring the grande selection methods.
#
# Returns nil on end of file.
#
# See also Rio#records, Rio#lines, Rio#each, Rio#[]
#
# ario = rio('afile').lines(10..12)
# line10 = ario.get
# line11 = ario.get
# line12 = ario.get
# a_nil = ario.get
+ #
+ # ario = rio('adir').entries('*.txt')
+ # ent1 = ario.get
+ # ent2 = ario.get
+ #
def get() target.get() end
# Writes a single record to a Rio
def putrec(el) target.putrec(el) end