lib/asana/resource_includes/collection.rb in asana-0.6.0 vs lib/asana/resource_includes/collection.rb in asana-0.6.2

- old
+ new

@@ -38,19 +38,18 @@ # Public: Returns the size of the collection. def size to_a.size end - alias_method :length, :size + alias length size # Public: Returns a String representation of the collection. def to_s "#<Asana::Collection<#{@type}> " \ "[#{@elements.map(&:inspect).join(', ')}" + (@next_page_data ? ', ...' : '') + ']>' end - - alias_method :inspect, :to_s + alias inspect to_s # Public: Returns a new Asana::Resources::Collection with the next page # or nil if there are no more pages. Caches the result. def next_page if defined?(@next_page)