lib/dolly/collection.rb in dolly-0.3.0 vs lib/dolly/collection.rb in dolly-0.4.0

- old
+ new

@@ -12,9 +12,17 @@ @set = Set.new @docs_class = docs_class @json = str end + def first + to_a.first + end + + def last + to_a.last + end + def map &block load if empty? @set.collect &block end