Class
Class Methods
lib/shell/builtin-command.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/lib/shell/builtin-command.rb, line 50
def initialize(sh, *filenames)
super sh
@cat_files = filenames
end
No documentation available
Instance Methods
lib/shell/builtin-command.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/lib/shell/builtin-command.rb, line 55
def each(rs = nil)
if @cat_files.empty?
super
else
for src in @cat_files
@shell.foreach(src, rs){|l| yield l}
end
end
end
No documentation available