Class | Shell::AppendIO |
In: |
lib/shell/builtin-command.rb
|
Parent: | BuiltInCommand |
class Sort < Cat
def initialize(sh, *filenames) super end def each(rs = nil) ary = [] super{|l| ary.push l} for l in ary.sort! yield l end end
end
# File lib/shell/builtin-command.rb, line 95 95: def initialize(sh, io, filter) 96: super sh 97: @input = filter 98: @io = io 99: end