lib/cequel_cql2/data_set.rb
def each
      if block_given?
        begin
          @keyspace.execute(*cql).fetch do |row|
            yield row.to_hash.with_indifferent_access
          end
        rescue EmptySubquery
          # Noop -- yield no results
        end
      else
        enum_for(:each)
      end
    end
#
# Enumerate over rows in this data set. Along with #each, all other
# Enumerable methods are implemented.
#
# @yield [Hash] result rows
# @return [Enumerator] enumerator for rows, if no block given
#
Enumerate over rows in this data set. Along with #each, all other
Enumerable methods are implemented.
Enumerate over rows in this data set . Along with #each all other Enumerable methods are implemented .
def each
      if block_given?
        begin
          @keyspace.execute(*cql).fetch do |row|
            yield row.to_hash.with_indifferent_access
          end
        rescue EmptySubquery
        end
      else
        enum_for(:each)
      end
    end
def each if block_given? begin @keyspace . execute ( * cql ) . fetch do | row | yield row . to_hash . with_indifferent_access end rescue EmptySubquery end else enum_for ( :each ) end end
Enumerate over rows in this data set.
Enumerate over rows in this data set .
# Noop -- yield no results
enumerator for rows, if no block given
enumerator for rows if no block given
Enumerator
]
None