mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
shell.rb: suppress warnings
* lib/shell.rb: initialize class instance variables and remove writer methods to be overwritten soon. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1b95e8ef9c
commit
a2acbf4b02
1 changed files with 6 additions and 2 deletions
|
@ -99,11 +99,14 @@ class Shell
|
||||||
@debug_display_process_id = false
|
@debug_display_process_id = false
|
||||||
@debug_display_thread_id = true
|
@debug_display_thread_id = true
|
||||||
@debug_output_mutex = Thread::Mutex.new
|
@debug_output_mutex = Thread::Mutex.new
|
||||||
|
@default_system_path = nil
|
||||||
|
@default_record_separator = nil
|
||||||
|
|
||||||
class << Shell
|
class << Shell
|
||||||
extend Forwardable
|
extend Forwardable
|
||||||
|
|
||||||
attr_accessor :cascade, :debug, :verbose
|
attr_accessor :cascade, :verbose
|
||||||
|
attr_reader :debug
|
||||||
|
|
||||||
alias debug? debug
|
alias debug? debug
|
||||||
alias verbose? verbose
|
alias verbose? verbose
|
||||||
|
@ -208,7 +211,8 @@ class Shell
|
||||||
# Returns the umask
|
# Returns the umask
|
||||||
attr_accessor :umask
|
attr_accessor :umask
|
||||||
attr_accessor :record_separator
|
attr_accessor :record_separator
|
||||||
attr_accessor :verbose, :debug
|
attr_accessor :verbose
|
||||||
|
attr_reader :debug
|
||||||
|
|
||||||
def debug=(val)
|
def debug=(val)
|
||||||
@debug = val
|
@debug = val
|
||||||
|
|
Loading…
Reference in a new issue