Module: RIO::Cp::File::Input
Instance Method Summary collapse
- #>(arg) ⇒ Object (also: #copy_to)
- #>>(arg) ⇒ Object (also: #append_to)
- #copy_as_file?(arg) ⇒ Boolean
- #spcp(arg) ⇒ Object
Methods included from Util::InOut
Instance Method Details
#>(arg) ⇒ Object Also known as: copy_to
222 223 224 |
# File 'lib/rio/cp.rb', line 222 def >(arg) spcp(arg) || cpclose(arg) { self.iostate(:>) > arg } end |
#>>(arg) ⇒ Object Also known as: append_to
225 226 227 |
# File 'lib/rio/cp.rb', line 225 def >>(arg) spcp(arg) || cpclose(arg) { self.iostate(:>>) >> arg } end |
#copy_as_file?(arg) ⇒ Boolean
230 231 232 |
# File 'lib/rio/cp.rb', line 230 def copy_as_file?(arg) arg.kind_of?(Rio) and arg.scheme == 'ftp' end |