Class: Shell::AppendFile
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Shell::AppendIO
|
Defined in: | lib/shell/builtin-command.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
Filter - Inherited
#+ | Outputs |
#< | Inputs from |
#> | Outputs from |
#>> | Appends the output to |
#each | Iterates a block for each line. |
#inspect, #to_a, #to_s, | |
#| | Processes a pipeline. |
Constructor Details
.new(sh, to_filename, filter) ⇒ AppendFile
# File 'lib/shell/builtin-command.rb', line 103
def initialize(sh, to_filename, filter) @file_name = to_filename io = sh.open(to_filename, "a") super(sh, io, filter) end
Instance Attribute Details
#input=(filter) (writeonly)
[ GitHub ]# File 'lib/shell/builtin-command.rb', line 109
def input=(filter) begin super ensure @io.close end end