Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Not A Bug
-
Affects Version/s: JRuby 1.5.6, JRuby 1.6.1
-
Fix Version/s: None
-
Component/s: Core Classes/Modules, Ruby 1.8.7
-
Labels:None
-
Number of attachments :
Description
In MRI, procs have properties _line_ and _file_. The method call
lambda {}._line_
succeeds. In JRuby, this call fails with
NoMethodError: undefined method `_line_' for #<Proc:...
The linenumber is available in the class, as it is shown in inspect:
"#<Proc:0x56f449b8@(irb):3>"
I've browsed through the sources a bit, but didn't see where it was appended.
Rubinius doesn't implement _line_ either BTW.