From: "sikachu (Prem Sichanugrist)" Date: 2013-11-02T00:37:37+09:00 Subject: [ruby-core:58122] [ruby-trunk - Feature #9070] Introduce `---` as synonym of `end` keyword Issue #9070 has been updated by sikachu (Prem Sichanugrist). It does look ugly. I don't think that really makes the code better. Also, I think if you leave a space after each method, then `end` really works fine here. ---------------------------------------- Feature #9070: Introduce `---` as synonym of `end` keyword https://bugs.ruby-lang.org/issues/9070#change-42713 Author: alexeymuranov (Alexey Muranov) Status: Open Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: =begin This is just an idea: introduce "(({---}))" as synonym of "(({end}))" keyword. It is a bit easier to type and to read, and makes whitespace insensitive language look as if it follows off-side rule. Compare: class Person attr_reader :name, :age def initialize(name, age) @name, @age = name, age --- def <=>(person) # the comparison operator for sorting age <=> person.age --- def to_s "#{name} (#{age})" --- --- class Person attr_reader :name, :age def initialize(name, age) @name, @age = name, age end def <=>(person) # the comparison operator for sorting age <=> person.age end def to_s "#{name} (#{age})" end end =end -- http://bugs.ruby-lang.org/