From 9d6cb6ecffabe5dc2d58c7825cac0c3fac2bc274 Mon Sep 17 00:00:00 2001 From: Yuki Kurihara Date: Mon, 5 Sep 2022 12:12:37 +0900 Subject: [PATCH] Fix doc for limitation `binding` has been supported since 3.1.0. --- doc/limitations.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/limitations.md b/doc/limitations.md index 3364e7042..ae0ca5de0 100644 --- a/doc/limitations.md +++ b/doc/limitations.md @@ -199,7 +199,7 @@ The re-defined `+` operator does not accept any arguments. ` 'ab' ` Behavior of the operator wasn't changed. -## `Kernel#binding` is not supported +## `Kernel#binding` is not supported until [3.0.0 (2021-03-05)] `Kernel#binding` method is not supported. @@ -210,7 +210,7 @@ $ ruby -e 'puts Proc.new {}.binding' # ``` -#### mruby [3.1.0 (2022-05-12)] +#### mruby [3.0.0 (2021-03-05)] ``` $ ./bin/mruby -e 'puts Proc.new {}.binding' @@ -219,6 +219,12 @@ trace (most recent call last): -e:1: undefined method 'binding' (NoMethodError) ``` +#### mruby [3.1.0 (2022-05-12)] + +`binding` has been supported since 3.1.0. + +See also [mrbgems/mruby-binding](https://github.com/mruby/mruby/tree/master/mrbgems/mruby-binding) and [mrbgems/mruby-binding-core](https://github.com/mruby/mruby/tree/master/mrbgems/mruby-binding-core). + ## `nil?` redefinition in conditional expressions Redefinition of `nil?` is ignored in conditional expressions.