Module: RIO::Cp::Dir::Input

Includes:
Util::Input
Included in:
Ops::Dir::Existing, Ops::Dir::Stream
Defined in:
lib/rio/cp.rb

Instance Method Summary collapse

Methods included from Util::InOut

#cpclose, #cpclose0

Instance Method Details

#>(arg) ⇒ Object Also known as: copy_to



307
308
309
310
311
312
313
# File 'lib/rio/cp.rb', line 307

def >(arg)
  case arg
  when ::Array then cpto_obj_(arg.clear)
  else cpto_rio_(ensure_rio(arg))
  end
  self
end

#>>(arg) ⇒ Object Also known as: append_to



300
301
302
303
304
305
306
# File 'lib/rio/cp.rb', line 300

def >>(arg)
  case arg
  when ::Array then cpto_obj_(arg)
  else cpto_rio_(ensure_rio(arg))
  end
  self
end