source:
EcnlProtoTool/trunk/mruby-1.2.0/mrblib/class.rb@
270
Last change on this file since 270 was 270, checked in by , 7 years ago | |
---|---|
|
|
File size: 177 bytes |
Rev | Line | |
---|---|---|
[270] | 1 | class Module |
2 | # 15.2.2.4.12 | |
3 | def attr_accessor(*names) | |
4 | attr_reader(*names) | |
5 | attr_writer(*names) | |
6 | end | |
7 | # 15.2.2.4.11 | |
8 | def attr(name) | |
9 | attr_reader(name) | |
10 | end | |
11 | end |
Note:
See TracBrowser
for help on using the repository browser.