Missing method body from custom methods in generated Ruby code #177
Labels
Priority-Medium
This problem or request is likely to be of significant benefit if dealt with
Status-Verified
Type-Defect
Originally reported on Google Code with ID 277
Owned by @EmperorJordan
What steps will reproduce the problem?
Copy the below program and compile it:
class Foo
{
void hello(name)
{
'Hello ' + name
}
}
Generate Ruby code from the program.
Observe what was generated for the "hello" method.
The problem here is that the method should look something like this:
But instead we get this:
Also note that the indentation and formatting is pretty bad here. The end is on the
same line as the "def" and the "def" is 1-space indented when everything else in the
class is at least 2-space.
Reported by @EmperorJordan on 2012-02-13 21:53:40
The text was updated successfully, but these errors were encountered: