Sha256: 446d747cf5f750d49776225000bf6aa8381a7ff5f04ccaedcc726cc6b131180f
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
# encoding: utf-8 require 'open_classes/object' require 'open_classes/module' require 'open_classes/array/together_helper' # Array class Array include TogetherHelper # Arrays bulk empty?. # # together_empty? has alias :tempty? # # empty case # lists = [[], []] # ret = lists.together_empty? # print ret # => true # # not empty case # lists = [[1], []] # ret = lists.together_empty? # print ret # => false def together_empty? if_not_contain_array_rails_type_error is_empty = true each { |list|is_empty &&= list.empty? } is_empty end alias_method :tempty?, :together_empty? end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tbpgr_utils-0.0.151 | lib/open_classes/array/together_empty.rb |