summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 08:39:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 08:39:39 +0000
commiteb807d42eca121df22f72b95465bba52a4e7fefa (patch)
tree35b722bc6c94d3b9c5f8f80d41e889c591a80450 /proc.c
parentc414d861c109ff546e2bc8c7264859907d6e0f76 (diff)
* gc.c (rb_gc_set_params): allow GC parameter configuration by
environment variables. based on a patch from funny-falcon at https://gist.github.com/856296, but honors safe level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/proc.c b/proc.c
index f81118ae61..18c7393536 100644
--- a/proc.c
+++ b/proc.c
@@ -336,10 +336,10 @@ rb_binding_new(void)
* calling +eval+ to execute the evaluated command in this
* environment. Also see the description of class +Binding+.
*
- * def get_binding(param)
+ * def getBinding(param)
* return binding
* end
- * b = get_binding("hello")
+ * b = getBinding("hello")
* eval("param", b) #=> "hello"
*/
@@ -358,10 +358,10 @@ rb_f_binding(VALUE self)
* <em>lineno</em> parameters are present, they will be used when
* reporting syntax errors.
*
- * def get_binding(param)
+ * def getBinding(param)
* return binding
* end
- * b = get_binding("hello")
+ * b = getBinding("hello")
* b.eval("param") #=> "hello"
*/
@@ -2211,15 +2211,15 @@ Init_Proc(void)
* def initialize(n)
* @secret = n
* end
- * def get_binding
+ * def getBinding
* return binding()
* end
* end
*
* k1 = Demo.new(99)
- * b1 = k1.get_binding
+ * b1 = k1.getBinding
* k2 = Demo.new(-3)
- * b2 = k2.get_binding
+ * b2 = k2.getBinding
*
* eval("@secret", b1) #=> 99
* eval("@secret", b2) #=> -3