Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

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 111
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 117
def input=(filter)
  begin
    super
  ensure
    @io.close
  end
end