Skip to content

ref(target): remove the page writer, build_page keeps the page it builds - #736

Merged
route merged 1 commit into
mainfrom
remove-target-page-writer
Nov 26, 2026
Merged

route merged 1 commit into
mainfrom
remove-target-page-writer

Conversation

@route

@route route commented Nov 26, 2026

Copy link
Copy Markdown
Member

Target#page= was a private API for Cuprite, which built its own Page subclass and assigned it to the target. Cuprite sets pages up with on_page (#735) now, so nothing outside Ferrum needs it.

  • Target#build_page stores the page it builds before passing it to the on_page blocks, and Target#page returns it or builds it.
  • Context#create_page calls target.build_page(**options) instead of assigning its result.
  • The writer is removed from sig/ferrum/target.rbs, and the changelog lists it under Removed.

Cuprite assigned its own Page subclass through Target#page=. It sets pages up with on_page now, so the writer has no user
left besides Context#create_page, which build_page covers by keeping the page itself.
@route
route merged commit af77fc9 into main Nov 26, 2026
7 checks passed
@route
route deleted the remove-target-page-writer branch November 26, 2026 18:56
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.

1 participant