diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-20 17:36:36 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-20 17:36:36 +0000 |
commit | d596fadb735af6d4956d003a87be46d5c934d1c9 (patch) | |
tree | f23af24cc3d193da3cc59197e065e2b986e8bb5d /lib/irb/ruby-token.rb | |
parent | 517fc96672a0c8c582219184d7157afbf543ffef (diff) | |
download | ruby-d596fadb735af6d4956d003a87be46d5c934d1c9.tar.gz ruby-d596fadb735af6d4956d003a87be46d5c934d1c9.tar.xz ruby-d596fadb735af6d4956d003a87be46d5c934d1c9.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/ruby-token.rb')
-rw-r--r-- | lib/irb/ruby-token.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/irb/ruby-token.rb b/lib/irb/ruby-token.rb index 525d4df14..0a297d28f 100644 --- a/lib/irb/ruby-token.rb +++ b/lib/irb/ruby-token.rb @@ -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 |