diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-10-25 01:13:10 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-10-28 00:29:30 +0900 |
| commit | 0cf5a0ee37e7579238246f2471bfdd991c48f861 (patch) | |
| tree | 858681369ebdd7981efc063e1ed19b2ff7a6536a /mrblib | |
| parent | fda64be996eb0bedd442e26953d9c96c73b343e0 (diff) | |
| download | mruby-0cf5a0ee37e7579238246f2471bfdd991c48f861.tar.gz mruby-0cf5a0ee37e7579238246f2471bfdd991c48f861.zip | |
Use alias to implement `attr` method
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/00class.rb | 7 |
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) |
