lib/twitter/cursor.rb in twitter-5.15.0 vs lib/twitter/cursor.rb in twitter-5.16.0

- old
+ new

@@ -6,12 +6,12 @@ class Cursor include Twitter::Enumerable include Twitter::Utils # @return [Hash] attr_reader :attrs - alias_method :to_h, :attrs - alias_method :to_hash, :to_h + alias to_h attrs + alias to_hash to_h deprecate_alias :to_hsh, :to_hash # Initializes a new Cursor # # @param key [String, Symbol] The key to fetch the data from the response @@ -33,10 +33,10 @@ # @return [Integer] def next_cursor @attrs[:next_cursor] || -1 end - alias_method :next, :next_cursor + alias next next_cursor # @return [Boolean] def last? next_cursor.zero? end