lib/roda/plugins/optimized_string_matchers.rb
# Optimized version of +is+ that only supports a single string.
Optimized version of +is+ that only supports a single string.
Optimized version of + is + that only supports a single string .
def is_exactly(s)
          rp = @remaining_path
          if _match_string(s)
            if @remaining_path.empty?
              always{yield}
            else
              @remaining_path = rp
            end
          end
        end
def is_exactly ( s ) rp = @remaining_path if _match_string ( s ) if @remaining_path . empty? always { yield } else @remaining_path = rp end end end
Optimized version of +is+ that only supports a single string.
Optimized version of + is + that only supports a single string .
s