lib/amazon_sdb/multimap.rb
def size
        if @size.nil?
          @size = @mset.inject(0) do |total, pair|
            value = pair[1]
            if value.is_a? Array
              total + value.size
            else
              total + 1
            end
          end
        end

        @size
      end
##
# Returns the size of the multimap. This is the total number of key/value pairs in it.
Returns the size of the multimap. This is the total number of key/value pairs in it.
Returns the size of the multimap . This is the total number of key / value pairs in it .
def size
        if @size.nil?
          @size = @mset.inject(0) do |total, pair|
            value = pair[1]
            if value.is_a? Array
              total + value.size
            else
              total + 1
            end
          end
        end
        @size
      end
def size if @size . nil? @size = @mset . inject ( 0 ) do | total , pair | value = pair [ 1 ] if value . is_a? Array total + value . size else total + 1 end end end @size end
Returns the size of the multimap.
Returns the size of the multimap .