S
saladin.mundi
hey=20
how is it possible to get the value(s) of the variable receiver in =
rb_funcall?
Function:
VALUE
rb_funcall(VALUE recv, ID mid, int n, ...) =20
is there something like: StringValueCStr(recv) ?
the thing is, I want to know if a function x was called by rb_funcall. =
therefor I want to see if the value of the revc is something like "x"
Further example:
class X
def hi()
p "hello"
end
end
ix =3D X.new
ix.hi # rb_funcall is invoked=20
so the recv shall be hi() , which should be the value of recv or??
thank you
how is it possible to get the value(s) of the variable receiver in =
rb_funcall?
Function:
VALUE
rb_funcall(VALUE recv, ID mid, int n, ...) =20
is there something like: StringValueCStr(recv) ?
the thing is, I want to know if a function x was called by rb_funcall. =
therefor I want to see if the value of the revc is something like "x"
Further example:
class X
def hi()
p "hello"
end
end
ix =3D X.new
ix.hi # rb_funcall is invoked=20
so the recv shall be hi() , which should be the value of recv or??
thank you