-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 14.09.2011 15:35, schrieb Michal Suchanek:
> Hello,
> 
> is any way to get the running interpreter path?
> 
> I found some people asking for it but no solution.
> 
> I don't want to know where the interpreter was installed, I want
> to know where it was run from.

I'm not sure what you mean, but it seems you don't want the RbConfig
thing, i.e.

require "rbconfig"
File.join(RbConfig::CONFIG["bindir"],
RbConfig::CONFIG["ruby_install_name"])

It merely sounds you want the current working directory. You can
access it via

Dir.pwd

Am I right on this?

> Thanks
> 
> Michal

Vale,
Marvin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOcOa0AAoJELh1XLHFkqhaAAUIAJR10rK+Ptd1/3wQX+Mn39Er
8qCQWeQ4wfTq3s5Dbep5Scy+EIwzwzhjPGIGXtrTm5fOyRpOsdfmvaYuB3gJb7n2
W49AS2Iz0hfZ0o4IysoUXClnUVKFBPUup65Y4YHXEgpV72DX0ZumvNtcES+XY5F6
vOGBG3lMxOfDWWjeo47hKcW5x3msVCQlRW0/abR2M+gOo97N/+P7Bk3L+vVbwwgK
jwoDVNB4NF5YzEqUI2YEuyXlPyIrQZEb5TvBP4wWEf4ySOsfnonTf6Mrz6K2TTRE
7fMSKPSwmjCHF5CAQ0f1rSukZ4j2ebd+qCR0YiQcYZOoeFhBi33yu6blF4ye5xk=
=n3PT
-----END PGP SIGNATURE-----