Class
Class Methods
lib/shell/builtin-command.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/shell/builtin-command.rb, line 120
def initialize(sh, filename)
super sh
@to_filename = filename
end
No documentation available
Instance Methods
lib/shell/builtin-command.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/lib/shell/builtin-command.rb, line 125
def each(rs = nil)
to = @shell.open(@to_filename, "w")
begin
super{|l| to << l; yield l}
ensure
to.close
end
end
No documentation available