Method: Fast::FindWithCapture#initialize

Defined in:
lib/fast.rb

#initialize(token) ⇒ FindWithCapture

Returns a new instance of FindWithCapture.



556
557
558
559
560
561
# File 'lib/fast.rb', line 556

def initialize(token)
  token = token.token if token.respond_to?(:token)
  raise 'You must use captures!' unless token

  @capture_index = token.to_i
end