Commit 836bebc
committed
mruby-compar-ext/compar.rb: Comparable#clamp to accept nil as arguments
1 file changed
Lines changed: 10 additions & 1 deletion
File tree
mrbgems/mruby-compar-ext/mrblib
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,8 +53,17 @@ def clamp(min, max=nil) | |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
0 commit comments
Comments
(0)