Method: Fast::FindFromArgument#initialize
- Defined in:
- lib/fast.rb
#initialize(token) ⇒ FindFromArgument
Returns a new instance of FindFromArgument.
554 555 556 557 558 559 560 |
# File 'lib/fast.rb', line 554 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 |