Support for the Ruby 2.1 series ended on March 31 2017. See here for details.

In Files

  • shell/builtin-command.rb

Methods

Shell::AppendFile

Public Class Methods

new(sh, to_filename, filter) click to toggle source
 
               # File shell/builtin-command.rb, line 117
def initialize(sh, to_filename, filter)
  @file_name = to_filename
  io = sh.open(to_filename, "a")
  super(sh, io, filter)
end
            

Public Instance Methods

input=(filter) click to toggle source
 
               # File shell/builtin-command.rb, line 123
def input=(filter)
  begin
    super
  ensure
    @io.close
  end
end