Re: Implementing DRY with a function call

2013-02-06 Thread Robert Klemme
On Wed, Feb 6, 2013 at 9:14 PM, Rob Marshall wrote: > To Robert...yes, I have NOT, yet, grasped the concept of blocks :-) OK. First of all a block is just an anonymous function. Because it doesn't have a name it is invoked via keyword "yield" as you are already aware. You can see it from the s

Re: Implementing DRY with a function call

2013-02-06 Thread Robert Klemme
On Wed, Feb 6, 2013 at 4:27 PM, Rob Marshall wrote: > Hi Jesus, > > Thanks for the help. I think I see your point about the "lambda {}call" > simply returning the already evaluated expression, as opposed to > actually evaluating it at the time of the yield. But in my case it > doesn't really matte

Re: Expanding gemspecs

2013-02-06 Thread Intransition
On Wednesday, February 6, 2013 4:48:36 AM UTC-5, Jon Cairns wrote: > > Hi everyone, I've got a question about the existence or potential > usefulness of a particular gem. > > The situation is this: all gems have a gemspec file that defines various > properties about the gem. When creating a ne

Re: Symbol.defined?

2013-02-06 Thread Intransition
While on the topic, I have a related question about this Symbol DOS attack vector: Can't an upper limit be put on the size of the symbols table, and if it is exceeded, then an error is raised? Wouldn't that alone be sufficient to neuter such an attack? -- [email protected] | h