diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-08-19 14:10:23 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-08-19 14:10:23 +0900 |
| commit | b2fceae461c8c266136cd881ce7969a05061cada (patch) | |
| tree | b28460f4f4a5bb7bdc117b91960d2ec7ff9987ac /mrblib/00class.rb | |
| parent | 67ad1ff11e8f32fda5c5ee401996d88ef6e0657e (diff) | |
| download | mruby-b2fceae461c8c266136cd881ce7969a05061cada.tar.gz mruby-b2fceae461c8c266136cd881ce7969a05061cada.zip | |
renamed class.rb and error.rb to ensure they are read first; ref #3197
Diffstat (limited to 'mrblib/00class.rb')
| -rw-r--r-- | mrblib/00class.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mrblib/00class.rb b/mrblib/00class.rb new file mode 100644 index 000000000..39e0d5091 --- /dev/null +++ b/mrblib/00class.rb @@ -0,0 +1,11 @@ +class Module + # 15.2.2.4.12 + def attr_accessor(*names) + attr_reader(*names) + attr_writer(*names) + end + # 15.2.2.4.11 + def attr(name) + attr_reader(name) + end +end |
