Skip to content
Open
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
10 changes: 5 additions & 5 deletions 4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ description: Ruby 4.0 full and annotated changelog
# Ruby 4.0

* **Released at:** Dec 25, 2025 (<a class="github" href="https://github.com/ruby/ruby/blob/v4.0.0/NEWS.md">NEWS.md</a> file)
* **Status (as of Dec 26, 2025):** 4.0 is just released
* **Status (as of Jan 09, 2026):** 4.0 is just released
* **This document first published:** Dec 26, 2025
* **Last change to this document:** Dec 26, 2025
* **Last change to this document:** Jan 09, 2026

<!--
* **Reason:**
Expand Down Expand Up @@ -339,7 +339,7 @@ By redefinining `#instance_variables_to_inspect`, the default output of `#inspec

# Now, as methods of SubclassCompatible are implemented mostly as they were before,
# old assumptions work:
class SmallStringSet
class SmallStringSet < Set
def initialize(items) = super(items.to_a[...5])
def add(item) = super(item.to_s)
end
Expand All @@ -352,7 +352,7 @@ By redefinining `#instance_variables_to_inspect`, the default output of `#inspec
# Note that if your code relied on `@hash` instance variable directly
# (which it shouldn't have), it will be broken despite the compatibility
# layer:
class SmallStringsSet
class SmallStringSet < Set
# Somebody decided using internal variable would be more efficient
def numeric? = @hash.keys.all?(Numeric)
end
Expand All @@ -371,7 +371,7 @@ By redefinining `#instance_variables_to_inspect`, the default output of `#inspec

# It would be faster, but the assumptions which methods calls which
# internally aren't necessary correct anymore
class SmallStringSet2
class SmallStringSet2 < Set::CoreSet
def initialize(items) = super(items.to_a[...5])
def add(item) = super(item.to_s)
end
Expand Down
6 changes: 3 additions & 3 deletions _src/4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ By redefinining `#instance_variables_to_inspect`, the default output of `#inspec

# Now, as methods of SubclassCompatible are implemented mostly as they were before,
# old assumptions work:
class SmallStringSet
class SmallStringSet < Set
def initialize(items) = super(items.to_a[...5])
def add(item) = super(item.to_s)
end
Expand All @@ -352,7 +352,7 @@ By redefinining `#instance_variables_to_inspect`, the default output of `#inspec
# Note that if your code relied on `@hash` instance variable directly
# (which it shouldn't have), it will be broken despite the compatibility
# layer:
class SmallStringsSet
class SmallStringSet < Set
# Somebody decided using internal variable would be more efficient
def numeric? = @hash.keys.all?(Numeric)
end
Expand All @@ -371,7 +371,7 @@ By redefinining `#instance_variables_to_inspect`, the default output of `#inspec

# It would be faster, but the assumptions which methods calls which
# internally aren't necessary correct anymore
class SmallStringSet2
class SmallStringSet2 < Set::CoreSet
def initialize(items) = super(items.to_a[...5])
def add(item) = super(item.to_s)
end
Expand Down