Skip to content
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

Time#xmlschema accepts Integer argument #2207

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/time.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@ class Time < Object
#
# You must require 'time' to use this method.
#
def xmlschema: () -> String
def xmlschema: (?Integer fraction_digits) -> String

# <!--
# rdoc-file=time.c
Expand Down
8 changes: 4 additions & 4 deletions test/stdlib/Time_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ def test_to_a
end

def test_xmlschema
if_ruby("3.4.0"...) do
assert_send_type "() -> String",
Time.now, :xmlschema
end
assert_send_type "() -> String",
Time.now, :xmlschema
assert_send_type "(Integer) -> String",
Time.now, :xmlschema, 3
end

def test_zone
Expand Down
Loading