Project

General

Profile

Bug #16685

IRB auto indent does not work for single-line method definitions

Added by sawa (Tsuyoshi Sawada) 3 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:97441]

Description

IRB auto indent does not work correctly for single line method definitions within a class. It ends up like this:

irb(main):001:1* class Foo
irb(main):002:1*   def a; end
irb(main):003:1*     def b; end
irb(main):004:0> end
=> :b

I believe it should end up like this:

irb(main):001:1* class Foo
irb(main):002:1*   def a; end
irb(main):003:1*   def b; end
irb(main):004:0> end
=> :b

No data to display

Also available in: Atom PDF