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
|
@ -29,9 +29,7 @@ module RubyToken
|
|||
@line_no = line_no
|
||||
@char_no = char_no
|
||||
end
|
||||
attr :seek
|
||||
attr :line_no
|
||||
attr :char_no
|
||||
attr :seek, :line_no, :char_no
|
||||
end
|
||||
|
||||
class TkNode < Token
|
||||
|
@ -58,7 +56,7 @@ module RubyToken
|
|||
end
|
||||
|
||||
class TkOp < Token
|
||||
attr :name, true
|
||||
attr_accessor :name
|
||||
end
|
||||
|
||||
class TkOPASGN < TkOp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue