lib/rews/folder.rb in rews-0.2.7 vs lib/rews/folder.rb in rews-0.2.9

- old
+ new

@@ -68,9 +68,17 @@ # access an element from +result+ def [](key) result[key] end + def first + result.first + end + + def last + result.last + end + def inspect attrs = VIEW_ATTRS.map{|attr| "@#{attr}=#{self.send(attr)}"}.join(", ") "#<#{self.class} #{attrs}, @result=#{@result.inspect}>" end end