Sha256: 1a66595d5d2d74473c9898aa6d3874c17e57e74e3d3b72c399920f49b9ee6e18

Contents?: true

Size: 137 Bytes

Versions: 106

Compression:

Stored size: 137 Bytes

Contents

class Array
  def insert_last(element)
    self + [element]
  end
end

class NilClass
  def insert_last(element)
    [element]
  end
end

Version data entries

106 entries across 106 versions & 2 rubygems

Version Path
mumuki-laboratory-5.8.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.7.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.6.3 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.6.2 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.6.1 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.6.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.5.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.4.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.3.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.2.1 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.2.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.1.1 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.1.0 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.0.12 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.0.11 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.0.10 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.0.9 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.0.8 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.0.7 lib/mumuki/laboratory/extensions/array.rb
mumuki-laboratory-5.0.6 lib/mumuki/laboratory/extensions/array.rb