Class: IO

Inherits:
Object show all
Defined in:
lib/objective_command/commands/pipe.rb

Overview

Author

Nicolas Pouillard <[email protected]>.

Copyright

Copyright © 2005, 2006 Nicolas Pouillard. All rights reserved.

License

GNU General Public License (GPL).

Revision

$Id: /w/fey/cmd/trunk/lib/objective_command/commands/pipe.rb 22779 2006-03-19T18:30:55.288309Z ertai $

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.pipeObject



16
17
18
19
20
21
22
# File 'lib/objective_command/commands/pipe.rb', line 16

def pipe
  ios = pipe_without_pipe?
  ios.each do |io|
    io.send(:define_singleton_method, :pipe?) { true }
  end
  ios
end

Instance Method Details

#pipe?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/objective_command/commands/pipe.rb', line 8

def pipe?
  false
end

#pipe_without_pipe?Object



14
# File 'lib/objective_command/commands/pipe.rb', line 14

alias_method :pipe_without_pipe?, :pipe