Class: Provider::File::StdIn
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(*ignored) ⇒ StdIn
constructor
A new instance of StdIn.
Methods inherited from Base
Constructor Details
#initialize(*ignored) ⇒ StdIn
Returns a new instance of StdIn.
127 128 129 |
# File 'lib/providers.rb', line 127 def initialize(*ignored) super nil end |
Instance Method Details
#each ⇒ Object
131 132 133 134 135 136 137 138 |
# File 'lib/providers.rb', line 131 def each until STDIN.eof? line = STDIN.readline.rstrip next if line.empty? path, file = ::File.split(line) yield path, file end end |