mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* object.c (rb_mod_attr): make Module#attr to be an alias to
attr_reader. [RCR#331] * ruby.h: export classes/modules to implement sandbox. [ruby-core:08283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b5d9cbe8e8
commit
c09cea5e1b
18 changed files with 44 additions and 41 deletions
|
|
@ -41,7 +41,7 @@ class Othello
|
|||
[ 1, -1], [ 1, 0], [ 1, 1]
|
||||
]
|
||||
|
||||
attr :com_disk, TRUE
|
||||
attr_accessor :com_disk
|
||||
|
||||
def initialize(othello)
|
||||
@othello = othello
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue