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
Methods
Class Public methods
new(sh, io, filter)
Link
Source: show
# File lib/shell/builtin-command.rb, line 101 def initialize(sh, io, filter) super sh @input = filter @io = io end
Instance Public methods