Sha256: ad7aba2c1148b67eb24e28bd0c38fd8e8e7317f30445068529a6e0aa306f49dd

Contents?: true

Size: 178 Bytes

Versions: 2

Compression:

Stored size: 178 Bytes

Contents

module Dixon
  module ArrayHelpers
    def element_of_same_size
      self.all? { |a| a.size == self.first.size }
    end
  end
end

class Array
  include Dixon::ArrayHelpers
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dixon-0.1.0 lib/dixon/validators/helper.rb
dixon-0.0.1 lib/dixon/validators/helpers.rb