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
208 209 210 |
# File 'lib/rio/cp.rb', line 208 def >(arg) spcp(arg) || cpclose(arg) { self.iostate(:>) > arg } end |
#>>(arg) ⇒ Object Also known as: append_to
211 212 213 |
# File 'lib/rio/cp.rb', line 211 def >>(arg) spcp(arg) || cpclose(arg) { self.iostate(:>>) >> arg } end |
#copy_as_file?(arg) ⇒ Boolean
216 217 218 |
# File 'lib/rio/cp.rb', line 216 def copy_as_file?(arg) arg.kind_of?(Rio) and arg.scheme == 'ftp' end |