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
11
lib/shell.rb
11
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue