lib/rio/ops/stream/input.rb in rio-0.3.8 vs lib/rio/ops/stream/input.rb in rio-0.3.9

- old
+ new

@@ -1,8 +1,8 @@ #-- # =============================================================================== -# Copyright (c) 2005, 2006 Christopher Kleckner +# Copyright (c) 2005,2006,2007 Christopher Kleckner # All rights reserved # # This file is part of the Rio library for ruby. # # Rio is free software; you can redistribute it and/or modify @@ -21,20 +21,19 @@ # =============================================================================== #++ # # To create the documentation for Rio run the command # ruby build_doc.rb -# from the distribution directory. Then point your browser at the 'doc/rdoc' directory. +# from the distribution directory. # # Suggested Reading # * RIO::Doc::SYNOPSIS # * RIO::Doc::INTRO # * RIO::Doc::HOWTO +# * RIO::Doc::EXAMPLES # * RIO::Rio # -# <b>Rio is pre-alpha software. -# The documented interface and behavior is subject to change without notice.</b> # T-Mobile HotSpot 1.877.822.SPOT require 'rio/matchrecord' require 'rio/arycopy' @@ -124,12 +123,10 @@ protected # iterate over the records, yielding only with matching records # implemented in terms of an underlying iterator like each_line (see RIO::RecType::*) def each_(*args,&block) - #p callstr('each_',*args) - selrej,rangetops = create_selrej() want_ma = block.arity > 1 catch(:stop_iter) do each_rec_ do |raw_rec| _got_rec(raw_rec) @@ -191,10 +188,10 @@ def each_record_init_ end def handle_skipped return self unless cx.has_key?('skip_args') args = cx['skip_args'] || [] - self.skiprecords(*args) + self.skiprecords_(*args) end def create_selrej() sel_args = cx['stream_sel'] nosel_args = cx['stream_nosel'] handle_skipped