From 8cfd83ac09a311bcf85b86a0d140b0fc7ff962de Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Fri, 2 Oct 2026 14:07:59 -0400 Subject: [PATCH 1/3] Replace dead omniref.com link with GitHub source Omniref has shut down. Point to the same method.h at the Ruby 2.2.0 tag, at the VM_METHOD_TYPE_ATTRSET and VM_METHOD_TYPE_IVAR lines. Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49ec2e0..b6c9eaa 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Idioms ##### `attr_accessor` vs `getter and setter` [code](code/general/attr-accessor-vs-getter-and-setter.rb) -> https://www.omniref.com/ruby/2.2.0/files/method.h?#annotation=4081781&line=47 +> https://github.com/ruby/ruby/blob/v2_2_0/method.h#L43-L44 ``` $ ruby -v code/general/attr-accessor-vs-getter-and-setter.rb From c961fd5b5820356cb767f9237864c3617a3f79a9 Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Fri, 2 Oct 2026 14:13:20 -0400 Subject: [PATCH 2/3] Link to Module#attr_accessor docs instead of method.h Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b6c9eaa..40c0f35 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Idioms ##### `attr_accessor` vs `getter and setter` [code](code/general/attr-accessor-vs-getter-and-setter.rb) -> https://github.com/ruby/ruby/blob/v2_2_0/method.h#L43-L44 +> https://docs.ruby-lang.org/en/2.2.0/Module.html#method-i-attr_accessor ``` $ ruby -v code/general/attr-accessor-vs-getter-and-setter.rb From 747509799f76a517d8efa9761411a312f9445c1a Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Fri, 2 Oct 2026 14:14:07 -0400 Subject: [PATCH 3/3] Link to rubydoc.info for Module#attr_accessor Co-Authored-By: Claude Sonnet 5.5 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40c0f35..235ff3b 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Idioms ##### `attr_accessor` vs `getter and setter` [code](code/general/attr-accessor-vs-getter-and-setter.rb) -> https://docs.ruby-lang.org/en/2.2.0/Module.html#method-i-attr_accessor +> https://www.rubydoc.info/stdlib/core/Module:attr_accessor ``` $ ruby -v code/general/attr-accessor-vs-getter-and-setter.rb