lib/roda/plugins/_optimized_matching.rb
def is(*args, &block)
          case args.length
          when 1
            _is1(args, &block)
          when 0
            always(&block) if @remaining_path.empty?
          else
            if_match(args << TERM, &block)
          end
        end
# Optimize the r.is method handling of a single string, String, Integer,
# regexp, or true, argument.
Optimize the r.is method handling of a single string, String, Integer,
regexp, or true, argument.
Optimize the r . is method handling of a single string String Integer regexp or true argument .
def is(*args, &block)
          case args.length
          when 1
            _is1(args, &block)
          when 0
            always(&block) if @remaining_path.empty?
          else
            if_match(args << TERM, &block)
          end
        end
def is ( * args , & block ) case args . length when 1 _is1 ( args , & block ) when 0 always ( & block ) if @remaining_path . empty? else if_match ( args << TERM , & block ) end end
Optimize the r.is method handling of a single string, String, Integer,
regexp, or true, argument.
Optimize the r . is method handling of a single string String Integer regexp or true argument .
args
block