- Inheritance
- < Shell::BuiltInCommand < Shell::Filter < Object
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
| Visibility | Signature |
|---|---|
| public | new (sh, io, filter) |
Instance
| Visibility | Signature |
|---|---|
| public | input= (filter) |