Module: RIO::RecType::Lines::Input
- Defined in:
- lib/rio/rectype.rb
Instance Method Summary collapse
- #each_rec_(&block) ⇒ Object
- #get_(sep_string = get_arg_) ⇒ Object
- #get_arg_ ⇒ Object
- #io_enum ⇒ Object
Instance Method Details
#each_rec_(&block) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/rio/rectype.rb', line 38 def each_rec_(&block) ih = self.ior ih.each_line { |line| yield line } self end |
#get_(sep_string = get_arg_) ⇒ Object
31 32 33 34 |
# File 'lib/rio/rectype.rb', line 31 def get_(sep_string=get_arg_) #p callstr('get_',sep_string.inspect) self.ior.gets(sep_string) end |
#get_arg_ ⇒ Object
30 |
# File 'lib/rio/rectype.rb', line 30 def get_arg_() $/ end |
#io_enum ⇒ Object
35 36 37 |
# File 'lib/rio/rectype.rb', line 35 def io_enum self.ior.to_enum end |