Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DOC] Move Time#xmlschema docs to the core #12403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

zverok
Copy link
Contributor

@zverok zverok commented Dec 19, 2024

While Time#xmlschema was moved to time.c in Feature #20707, its docs still suggest require 'time' in text and code examples.

This PR does NOT solve the issue fully: while Time#xmlschema is still in time.rb (guarded by unless method_defined?(:xmlschema)), RDoc prefers that version of the docs.

I don’t know how to solve that right now (maybe there is some RDoc setting to prefer the “proper” version?). But I believe it makes sense to at least have a copy of the docs in the time.c anyway.

PS: But actually, maybe it makes sense to remove the method from time.rb (and release the change in the gem version, which requires ruby >= 3.4.0)?..

@zverok zverok added the Documentation Improvements to documentation. label Dec 19, 2024
@zverok zverok self-assigned this Dec 19, 2024
Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. One recommended change, but it's up to you.

@zverok zverok force-pushed the time-move-xmlschema-docs branch from 5c6696d to 3bffb07 Compare December 21, 2024 17:56
@zverok zverok merged commit 78f55cc into ruby:master Dec 21, 2024
41 checks passed
@zverok zverok deleted the time-move-xmlschema-docs branch December 21, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements to documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants