Class | IO::InputFilter |
In: |
lib/ttk/Tools/io/filters.rb
|
Parent: | DelegateClass(IO) |
# File lib/ttk/Tools/io/filters.rb, line 12 def initialize(input, &block) @input = input @block = block end
# File lib/ttk/Tools/io/filters.rb, line 16 def each(&block) @input.each { |line| block[@block[line]] } end
# File lib/ttk/Tools/io/filters.rb, line 19 def each_byte(&block) @input.each_byte { |line| block[@block[line]] } end
# File lib/ttk/Tools/io/filters.rb, line 22 def each_line(&block) @input.each_line { |line| block[@block[line]] } end