Skip to content

Extract CallerInformation and ArgumentExtractor to module-level files#12

Open
johngallagher wants to merge 1 commit into
claude/fix-code-smells-o11wKfrom
claude/extract-nested-classes-o11wK
Open

Extract CallerInformation and ArgumentExtractor to module-level files#12
johngallagher wants to merge 1 commit into
claude/fix-code-smells-o11wKfrom
claude/extract-nested-classes-o11wK

Conversation

@johngallagher

Copy link
Copy Markdown
Contributor

Moves the nested CallerInformation struct and ArgumentExtractor class out of Instrumenter into their own files (caller_information.rb and argument_extractor.rb) to improve organisation and reduce nesting.

Both were nested inside Instrumenter, making them inaccessible outside and
tightly coupling them to Instrumenter's implementation. Moving them to their
own files (caller_information.rb, argument_extractor.rb) under Observable::
makes them independently testable and reusable.

Also takes the opportunity to fix the unused local_variables call and bare
rescue in ArgumentExtractor (fixes already done in sibling PRs).

https://claude.ai/code/session_01KWZUse79XR68i6nGa8VgTu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants