P
Peter Lynch
Is there a way to insert code which is unbalanced into Ruby source.
For example, I have a condition which is checked in many places, but
which i am not yet sure is the correct condition, so i want to keep only
that condition in an "include" library called "not yet completed
condition" or "condition which i reckon will change and it is used
everywhere".
This include library may contain this code -
if condition then
I would like to be able to insert this in my source code with an in situ
"include", but the Ruby include expects a complete block.
the source code would look like this-
includesnippet "C:/INSERTS/IFNOTBROKEN.RB.INS"
While you may think this is crazy, and i can certainly see your point,
this question is related to converting from another language to Ruby, so
i just have to ask.
Regards,
Peter
For example, I have a condition which is checked in many places, but
which i am not yet sure is the correct condition, so i want to keep only
that condition in an "include" library called "not yet completed
condition" or "condition which i reckon will change and it is used
everywhere".
This include library may contain this code -
if condition then
I would like to be able to insert this in my source code with an in situ
"include", but the Ruby include expects a complete block.
the source code would look like this-
includesnippet "C:/INSERTS/IFNOTBROKEN.RB.INS"
While you may think this is crazy, and i can certainly see your point,
this question is related to converting from another language to Ruby, so
i just have to ask.
Regards,
Peter