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-domain-7.0.2 lib/mumuki/domain/extensions/array.rb
mumuki-domain-7.0.1 lib/mumuki/domain/extensions/array.rb
mumuki-domain-7.0.0 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.7.2 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.7.1 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.7.0 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.6.2 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.6.1 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.6.0 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.5.1 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.5.0 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.4.3 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.4.2 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.4.1 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.4.0 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.2.2 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.2.1 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.3.0 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.2.0 lib/mumuki/domain/extensions/array.rb
mumuki-domain-6.1.5 lib/mumuki/domain/extensions/array.rb