Your understanding is incorrect. I came up against this lack of
documentation the other day so went looking to see what the code did; it
turns out that it adds nested classes and defines from other classes
into the local class but not variables. You'll find the relevant code
in parser.rb and scope.rb.
--
Bruce
Explota!: miles de lemmings no pueden estar equivocados.
> On Mon, Feb 23, 2009 at 09:29:53AM -0800, Robb Wagoner wrote:
>> I would like to know:
>> a) is my understanding about the purpose of this function incorrect?
>> b) the recommended way to accomplish making variables defined in classes
>> available to other classes, dynamically (see below as an example).
>
> Your understanding is incorrect. I came up against this lack of
> documentation the other day so went looking to see what the code did; it
> turns out that it adds nested classes and defines from other classes
> into the local class but not variables. You'll find the relevant code
> in parser.rb and scope.rb.
would be nice if you could add this documentation to the wiki,
because... eh it's a wiki!
thanks and cheers
pete
The functions reference page is autogenerated. What is the source, if I
am to update it?
--
Bruce
What would Edward Woodward do?
Bruce Richardson wrote:
> On Mon, Feb 23, 2009 at 06:56:05PM +0100, Peter Meier wrote:
>> would be nice if you could add this documentation to the wiki,
>> because... eh it's a wiki!
>
> The functions reference page is autogenerated. What is the source, if I
> am to update it?
>
Log a ticket in Redmine with your updates.
Thanks
James Turnbull
- --
Author of:
* Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
* Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
* Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJo8h59hTGvAxC30ARAk59AKCl8vmZK6yzKw5XgrjBry/8g4MeNACfYTBm
Y3YZIy30BmIv9XpydMgJPiE=
=M+vB
-----END PGP SIGNATURE-----
>> would be nice if you could add this documentation to the wiki,
>> because... eh it's a wiki!
>
> The functions reference page is autogenerated. What is the source, if I
> am to update it?
the code.
However for more extended example it might be nice to create wiki page.
But if it's just a few lines, I think James is fine with code patches.
cheers pete
OK, having already registered on the wiki, I just tried to register on
redmine and it's returning an error.
--
Bruce
Hierophant: someone who remembers, when you are on the way down,
everything you did to them on the way up.
I'll submit a patch but it sounds like it might be a good idea to change
the template for the function references page to include a link to
/track/wiki/Function_Usage_Examples#functionname . I'd happily populate
that page and then bug people to correct my mistakes and fill in the
gaps. If nobody can suggest a better name, I'll take some time to day
to create that page in the hope that the links will appear later.
--
Bruce
I see a mouse. Where? There, on the stair. And its clumsy wooden
footwear makes it easy to trap and kill. -- Harry Hill