summaryrefslogtreecommitdiffhomepage
path: root/mrblib/00class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrblib/00class.rb')
-rw-r--r--mrblib/00class.rb11
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