summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-08-29 10:23:14 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-08-29 18:34:09 +0900
commit0766f67168cf248b698a8b2cde1c22c526374be7 (patch)
tree51ad9ec35d70190f4a1147664846651efeae8bc3 /variable.c
parent7bcfd9189a6a0b2ad58fed988faaf795a4987893 (diff)
move docs around [ci skip]
To properly generate documents.
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/variable.c b/variable.c
index 4a922126c5..c7873f7586 100644
--- a/variable.c
+++ b/variable.c
@@ -532,29 +532,6 @@ rb_trace_eval(VALUE cmd, VALUE val)
rb_eval_cmd(cmd, rb_ary_new3(1, val), 0);
}
-/*
- * call-seq:
- * trace_var(symbol, cmd ) -> nil
- * trace_var(symbol) {|val| block } -> nil
- *
- * Controls tracing of assignments to global variables. The parameter
- * +symbol+ identifies the variable (as either a string name or a
- * symbol identifier). _cmd_ (which may be a string or a
- * +Proc+ object) or block is executed whenever the variable
- * is assigned. The block or +Proc+ object receives the
- * variable's new value as a parameter. Also see
- * Kernel::untrace_var.
- *
- * trace_var :$_, proc {|v| puts "$_ is now '#{v}'" }
- * $_ = "hello"
- * $_ = ' there'
- *
- * <em>produces:</em>
- *
- * $_ is now 'hello'
- * $_ is now ' there'
- */
-
VALUE
rb_f_trace_var(int argc, const VALUE *argv)
{
@@ -604,16 +581,6 @@ remove_trace(struct rb_global_variable *var)
var->trace = t.next;
}
-/*
- * call-seq:
- * untrace_var(symbol [, cmd] ) -> array or nil
- *
- * Removes tracing for the specified command on the given global
- * variable and returns +nil+. If no command is specified,
- * removes all tracing for that variable and returns an array
- * containing the commands actually removed.
- */
-
VALUE
rb_f_untrace_var(int argc, const VALUE *argv)
{
@@ -768,15 +735,6 @@ gvar_i(ID key, VALUE val, void *a)
return ID_TABLE_CONTINUE;
}
-/*
- * call-seq:
- * global_variables -> array
- *
- * Returns an array of the names of global variables.
- *
- * global_variables.grep /std/ #=> [:$stdin, :$stdout, :$stderr]
- */
-
VALUE
rb_f_global_variables(void)
{