class
Analyzer::Ruby::Hanami
- Analyzer::Ruby::Hanami
- Analyzer::Ruby::RubyEngine
- Analyzer
- Reference
- Object
Defined in:
analyzer/analyzers/ruby/hanami.crConstant Summary
-
HANAMI_HTTP_VERBS =
HTTP_VERBS + ["trace"] -
HANAMI_VERB_PATTERNS =
HANAMI_HTTP_VERBS.map do |verb| {verb, /^#{verb}\s*\(?\s*['"]([^'"]*)['"](.*)$/} end -
Crystal recompiles an interpolated regex literal on every evaluation (a full PCRE2 JIT compile). The verb set is fixed, so precompile the per-verb route matchers once at load time.
Instance Method Summary
- #analyze
- #extract_action_path(content : String, framework_root : String = @base_path) : String
- #scan_action_file(endpoint : Endpoint, action_path : String, include_callee : Bool = false)