From c09cea5e1ba4e6d103fad9e6c6cbf29560abf78b Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 20 Jul 2006 17:36:36 +0000 Subject: * 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 --- lib/irb/ruby-token.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/irb/ruby-token.rb') diff --git a/lib/irb/ruby-token.rb b/lib/irb/ruby-token.rb index 525d4df14c..0a297d28fa 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 -- cgit v1.2.3