Class: Lunar::ResultSet
- Inherits:
-
Object
- Object
- Lunar::ResultSet
- Includes:
- Enumerable
- Defined in:
- lib/lunar/result_set.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(key, &block) ⇒ ResultSet
constructor
A new instance of ResultSet.
Constructor Details
#initialize(key, &block) ⇒ ResultSet
Returns a new instance of ResultSet.
7 8 9 10 |
# File 'lib/lunar/result_set.rb', line 7 def initialize(key, &block) @key = key @block = block end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/lunar/result_set.rb', line 5 def key @key end |
Instance Method Details
#each(&block) ⇒ Object
12 13 14 |
# File 'lib/lunar/result_set.rb', line 12 def each(&block) all.each(&block) end |