class SyntaxTree::Database::QueryResult
A lazy query result.
Attributes
database[R]
query[R]
Public Class Methods
new(database, query)
click to toggle source
# File lib/syntax_tree/database.rb, line 154 def initialize(database, query) @database = database @query = query end
Public Instance Methods
each(&block)
click to toggle source
# File lib/syntax_tree/database.rb, line 159 def each(&block) return enum_for(__method__) unless block_given? query.each(database, &block) end