Method: Fast::FindFromArgument#initialize
- Defined in:
- lib/fast.rb
#initialize(token) ⇒ FindFromArgument
Returns a new instance of FindFromArgument.
583 584 585 586 587 588 589 |
# File 'lib/fast.rb', line 583 def initialize(token) token = token.token if token.respond_to?(:token) raise 'You must define index' unless token @capture_argument = token.to_i - 1 raise 'Arguments start in one' if @capture_argument.negative? end |