Class: RailsOpenapiGen::Parsers::Jbuilder::CallDetectors::BaseDetector
- Inherits:
-
Object
- Object
- RailsOpenapiGen::Parsers::Jbuilder::CallDetectors::BaseDetector
- Defined in:
- lib/rails-openapi-gen/parsers/jbuilder/call_detectors/base_detector.rb
Overview
Base class for all call detectors Provides common interface and utility methods for detecting Jbuilder method calls
Direct Known Subclasses
ArrayCallDetector, CacheCallDetector, JsonCallDetector, PartialCallDetector
Class Method Summary collapse
-
.category ⇒ Symbol
Get the category of this detector for organization.
-
.description ⇒ String
Get human-readable description of what this detector handles.
-
.handles?(_receiver, _method_name, _args = []) ⇒ Boolean
Check if a method call matches this detector's patterns.
-
.priority ⇒ Integer
Get the detection priority for this detector Higher priority detectors are checked first.
Class Method Details
.category ⇒ Symbol
Get the category of this detector for organization
26 27 28 |
# File 'lib/rails-openapi-gen/parsers/jbuilder/call_detectors/base_detector.rb', line 26 def category :general end |
.description ⇒ String
Get human-readable description of what this detector handles
32 33 34 |
# File 'lib/rails-openapi-gen/parsers/jbuilder/call_detectors/base_detector.rb', line 32 def description "Base detector" end |
.handles?(_receiver, _method_name, _args = []) ⇒ Boolean
Check if a method call matches this detector's patterns
13 14 15 |
# File 'lib/rails-openapi-gen/parsers/jbuilder/call_detectors/base_detector.rb', line 13 def handles?(_receiver, _method_name, _args = []) raise NotImplementedError, "#{self} must implement #handles?" end |
.priority ⇒ Integer
Get the detection priority for this detector Higher priority detectors are checked first
20 21 22 |
# File 'lib/rails-openapi-gen/parsers/jbuilder/call_detectors/base_detector.rb', line 20 def priority 0 end |