Sha256: bca5ec317f85d146d517b6c6083409b8143718d09a0786753d9762edd62d1338
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
class Baza::ResultBase include Enumerable def to_enum @enum ||= Enumerator.new do |y| each do |data| y << data end end end def to_a_enum require 'array_enumerator' @a_enum ||= ArrayEnumerator.new(to_enum) end def to_a array = [] each do |row_data| array << row_data end return array end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.19 | lib/baza/result_base.rb |
baza-0.0.18 | lib/baza/result_base.rb |