lib/ruby-hackernews.rb in ruby-hackernews-1.1.1 vs lib/ruby-hackernews.rb in ruby-hackernews-1.1.2

- old
+ new

@@ -3,6 +3,12 @@ require 'mechanize' require 'require_all' require_all File.join(File.dirname(__FILE__), 'ruby-hackernews', 'domain') -require_all File.join(File.dirname(__FILE__), 'ruby-hackernews', 'services') \ No newline at end of file +require_all File.join(File.dirname(__FILE__), 'ruby-hackernews', 'services') + +entries = Entry.all(2) + +entries.each do |entry| + p entry.id, entries.index(entry) +end