RubyMine incorrectly marks method calls with blocks on do/end blocks as invalid syntax.

a = ["1","3", "2"].map do |i|
i.to_i
end.sort {|a,b| a <=> b}
puts a.inspect #=>

1 comment
Comment actions Permalink

Hello Charles,

a = ["1","3", "2"].map do |i|

     i.to_i
end.sort {|a,b| a <=> b}
puts a.inspect #=> 1, 2, 3

Thanks, filled an issue: http://www.jetbrains.net/jira/browse/RUBY-3983

Regards,
Oleg

0

Please sign in to leave a comment.