insertion.rb

Path: lib/yard/core_ext/insertion.rb
Last Update: Tue May 21 03:27:31 +0000 2013

The Insertion class inserts a value before or after another value in a list.

@example

  Insertion.new([1, 2, 3], 4).before(3) # => [1, 2, 4, 3]

[Validate]