Fix doc for limitation

`binding` has been supported since 3.1.0.
This commit is contained in:
Yuki Kurihara
2022-09-05 12:12:37 +09:00
committed by GitHub
parent 966d90e182
commit 9d6cb6ecff
+8 -2
View File
@@ -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'
#<Binding:0x00000e9deabb9950>
```
#### 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.