Module: RIO::Cp::NonExisting::Output
Instance Method Summary collapse
- #<(arg) ⇒ Object (also: #copy_from)
- #<<(arg) ⇒ Object (also: #append_from)
Methods included from Util::InOut
Instance Method Details
#<(arg) ⇒ Object Also known as: copy_from
318 319 320 321 322 323 324 325 326 |
# File 'lib/rio/cp.rb', line 318 def <(arg) if _switch_direction?(arg) #arg > self arg.copy_to(self) self else _cpsrc(arg) < arg end end |
#<<(arg) ⇒ Object Also known as: append_from
327 328 329 330 331 332 333 334 |
# File 'lib/rio/cp.rb', line 327 def <<(arg) if _switch_direction?(arg) arg >> self self else _cpsrc(arg) << arg end end |