summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-10-25 01:13:10 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-10-28 00:29:30 +0900
commit0cf5a0ee37e7579238246f2471bfdd991c48f861 (patch)
tree858681369ebdd7981efc063e1ed19b2ff7a6536a /mrblib
parentfda64be996eb0bedd442e26953d9c96c73b343e0 (diff)
downloadmruby-0cf5a0ee37e7579238246f2471bfdd991c48f861.tar.gz
mruby-0cf5a0ee37e7579238246f2471bfdd991c48f861.zip
Use alias to implement `attr` method
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/00class.rb7
1 files changed, 4 insertions, 3 deletions
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)