From 0cf5a0ee37e7579238246f2471bfdd991c48f861 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 25 Oct 2017 01:13:10 +0900 Subject: Use alias to implement `attr` method --- mrblib/00class.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mrblib') diff --git a/mrblib/00class.rb b/mrblib/00class.rb index 1a2d833c8..1811236f0 100644 --- a/mrblib/00class.rb +++ b/mrblib/00class.rb @@ -5,9 +5,10 @@ class Module attr_writer(*names) end # 15.2.2.4.11 - def attr(name) - attr_reader(name) - end + alias attr attr_reader + #def attr(name) + # attr_reader(name) + #end # 15.2.2.4.27 def include(*args) -- cgit v1.2.3