Module: Irbcp
Constant Summary collapse
- Version =
'0.0.4'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#copy(*args) ⇒ Object
27 28 29 30 31 |
# File 'lib/irbcp.rb', line 27 def copy(*args) stdin = args.join systemu(Copy, :stdin => stdin) stdin end |
#cp(*args) ⇒ Object
39 40 41 |
# File 'lib/irbcp.rb', line 39 def cp(*args) args.size==0 ? paste(*args) : copy(*args) end |
#paste(*args) ⇒ Object
33 34 35 36 37 |
# File 'lib/irbcp.rb', line 33 def paste(*args) stdout = '' systemu(Paste, :stdout => stdout) stdout end |