1
0
Fork 0
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:
nobu 2016-11-05 23:58:02 +00:00
parent 1b95e8ef9c
commit a2acbf4b02

View file

@ -99,11 +99,14 @@ class Shell
@debug_display_process_id = false
@debug_display_thread_id = true
@debug_output_mutex = Thread::Mutex.new
@default_system_path = nil
@default_record_separator = nil
class << Shell
extend Forwardable
attr_accessor :cascade, :debug, :verbose
attr_accessor :cascade, :verbose
attr_reader :debug
alias debug? debug
alias verbose? verbose
@ -208,7 +211,8 @@ class Shell
# Returns the umask
attr_accessor :umask
attr_accessor :record_separator
attr_accessor :verbose, :debug
attr_accessor :verbose
attr_reader :debug
def debug=(val)
@debug = val