diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 23:58:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 23:58:02 +0000 |
commit | a2acbf4b02ce8a68efcb58c2d920f919f3da4aec (patch) | |
tree | 52a54a87523e2f56bec6022bc57cff9e7c56d51a | |
parent | 1b95e8ef9cbc352b267dd187d87a1bd979d95a98 (diff) | |
download | ruby-a2acbf4b02ce8a68efcb58c2d920f919f3da4aec.tar.gz |
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
-rw-r--r-- | lib/shell.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/shell.rb b/lib/shell.rb index b0bdc8194f..fb63717391 100644 --- a/lib/shell.rb +++ b/lib/shell.rb @@ -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 |