Sha256: fa508b1113c8c2cad92ee45563de1563b4b6ff0dc508d2d6e3b96d7041e4030a

Contents?: true

Size: 163 Bytes

Versions: 7

Compression:

Stored size: 163 Bytes

Contents

class Array

  def remove_blanks
    reject { |value| value.blank? }
  end

  def remove_first
    self[1..-1]
  end

  def remove_last
    self[0...-1]
  end

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
nobiru-1.0.0 lib/nobiru/extensions/array_extension.rb
nobiru-0.0.1 lib/nobiru/extensions/array_extension.rb
flash_extensions-3.2.3 lib/flash_extensions/extensions/array_extension.rb
flash_extensions-3.2.2 lib/flash_extensions/extensions/array_extension.rb
flash_extensions-3.2.1 lib/flash_extensions/extensions/array_extension.rb
flash_extensions-3.2.0 lib/flash_extensions/extensions/array_extension.rb
flash_extensions-3.1.1 lib/flash_extensions/extensions/array_extension.rb