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 | c09cea5e1ba4e6d103fad9e6c6cbf29560abf78b (patch) | |
tree | f23af24cc3d193da3cc59197e065e2b986e8bb5d /lib/shell.rb | |
parent | b5d9cbe8e8bb5c0eb826ce68a81aa5579359b5e8 (diff) | |
download | ruby-c09cea5e1ba4e6d103fad9e6c6cbf29560abf78b.tar.gz |
* 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
Diffstat (limited to 'lib/shell.rb')
-rw-r--r-- | lib/shell.rb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/shell.rb b/lib/shell.rb index 039f849ef5..9c6847c623 100644 --- a/lib/shell.rb +++ b/lib/shell.rb @@ -31,9 +31,7 @@ class Shell @verbose = true class << Shell - attr :cascade, true - attr :debug, true - attr :verbose, true + attr_accessor :cascade, :debug, :verbose # alias cascade? cascade alias debug? debug @@ -98,11 +96,8 @@ class Shell rehash end - attr :umask, true - attr :record_separator, true - - attr :verbose, true - attr :debug, true + attr_accessor :umask, :record_separator + attr_accessor :verbose, :debug def debug=(val) @debug = val |