Module: Woods::Chunking

Defined in:
lib/woods/chunking/chunk.rb,
lib/woods/chunking/semantic_chunker.rb

Defined Under Namespace

Modules: ChunkBuilder Classes: Chunk, ControllerChunker, MethodChunker, ModelChunker, SemanticChunker

Constant Summary collapse

METHOD_PATTERN =

Shared method-detection patterns used by ModelChunker and ControllerChunker.

/^\s*def\s+/
PRIVATE_PATTERN =
/^\s*(private|protected)\s*$/
METHOD_CHUNKABLE_TYPES =

Class-like unit types that MethodChunker handles — anything shaped as “class or module with public methods, maybe privates, maybe callbacks/filters.” Extend this list when new extractors produce units of similar structure.

%i[
  service job mailer concern policy pundit_policy serializer
  decorator presenter interactor query_object value_object
  component view_component action_cable_channel channel
  graphql_resolver graphql_type helper validator api_client poro
  manager configuration
].freeze