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



293
294
295
296
297
298
299
# File 'lib/rio/cp.rb', line 293

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



286
287
288
289
290
291
292
# File 'lib/rio/cp.rb', line 286

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