Issue #16685 has been reported by sawa (Tsuyoshi Sawada).

----------------------------------------
Bug #16685: IRB auto indent does not work for single-line method definitions
https://bugs.ruby-lang.org/issues/16685

* Author: sawa (Tsuyoshi Sawada)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
IRB auto indent does not work correctly for single line method definitions within a class. It ends up like this:

```ruby
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:

```ruby
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
```




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>