Shell::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 shell/builtin-command.rb, line 101 def initialize(sh, io, filter) super sh @input = filter @io = io end
# File shell/builtin-command.rb, line 107 def input=(filter) @input.input=filter for l in @input @io << l end end
This page was generated for Ruby 1.9.1
Generated with Ruby-doc Rdoc Generator 0.44.0.