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
332 333 334 335 336 337 338 339 340 |
# File 'lib/rio/cp.rb', line 332 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
341 342 343 344 345 346 347 348 |
# File 'lib/rio/cp.rb', line 341 def <<(arg) if _switch_direction?(arg) arg >> self self else _cpsrc(arg) << arg end end |