Project
Ruby
Priority
Critical
Type
Bug
Fix versions
RubyMine 1.1.1
State
Fixed
Assignee
Unassigned
Subsystem
Editing
Affected versions
No Affected versions
Fixed in build
108.101  
  • Created by   Patrick Bennett
    2 years ago (05 Jun 2009 01:21)
  • Updated by   Vadim Gurov
    8 months ago (18 May 2011 18:22)
  • Jira: RUBY-4255
    (history, comments)
 
RUBY-4255 Convert {} to 'do' block removes comments
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Wasn't the best example, but it breaks for me everytime.
ie:
@scrs = arg.split(',').collect { |a|
    # this is a test comment
    # so is this
    raise(ArgumentError,"Must specify a numeric SCR number") if a.to_i == 0 a.to_i
}

Using the auto convert {} to 'do' block function, it changes it to:\\
@scrs = arg.split(',').collect do |a|
    raise(ArgumentError, "Must specify a numeric SCR number") if a.to_i == 0
    a.to_i
end


notice the comments are tossed!

Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments