lib/picky/query/tokens.rb in picky-4.12.1 vs lib/picky/query/tokens.rb in picky-4.12.2
- old
+ new
@@ -8,12 +8,12 @@
#
class Tokens
attr_reader :tokens, :ignore_unassigned
- # Basically delegates to its internal tokens array.
+ # Basically forwards to its internal tokens array.
#
- self.delegate *[Enumerable.instance_methods, :slice!, :[], :uniq!, :last, :reject!, :length, :size, :empty?, :each, :exit, { :to => :@tokens }].flatten
+ forward *[Enumerable.instance_methods, :slice!, :[], :uniq!, :last, :reject!, :length, :size, :empty?, :each, :exit, :to => :@tokens].flatten
# Create a new Tokens object with the array of tokens passed in.
#
def initialize tokens, ignore_unassigned = false
@tokens = tokens
\ No newline at end of file