Sha256: 3eae4b91b43c00527bb72556698d50feff7a271518b546e3ee2b3d697b8c8c22

Contents?: true

Size: 155 Bytes

Versions: 4

Compression:

Stored size: 155 Bytes

Contents

class Array

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

  def remove_first
    self[1..-1]
  end

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flash_extensions-3.1.0 lib/flash_extensions/extensions/array_extension.rb
flash_extensions-3.0.0 lib/flash_extensions/extensions/array_extension.rb
flash_extensions-1.1.0 lib/flash_extensions/extensions/array_extension.rb
flash_extensions-1.0.0 lib/flash_extensions/extensions/array_extension.rb