module Roda::RodaPlugins::OptimizedStringMatchers::RequestMethods
Public Instance Methods
Source
# File lib/roda/plugins/optimized_string_matchers.rb, line 35 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.
Source
# File lib/roda/plugins/optimized_string_matchers.rb, line 30 def on_branch(s) always{yield} if _match_string(s) end
Optimized version of on
that only supports a single string.