poem.lines doesn't work #172
Copy link
Copy link
Open
Description
Activity
The problem seems to be that
.linesreturns anEnumerator, and tryruby doesn't want to print the string version of (any) enumerators. (maybe they are getting detected as errors). If you dopoem.lines.to_a, as suggested, you get the lines. You can do poem.lines.to_s to see what it should be printing.So I think the fix is to print enumerators normally, instead of giving:
=> Something's gone wrong- that might not have been valid ruby
Metadata
Metadata
Assignees
Labels
No labels
In section two, I see:
poem.linesgives me an error. This is odd, because the rdoc for 1.9.3 showslinesas a valid method.This seems very odd.