ruby-changes:44543
From: nobu <ko1@a...>
Date: Sun, 6 Nov 2016 08:58:05 +0900 (JST)
Subject: [ruby-changes:44543] nobu:r56616 (trunk): shell.rb: suppress warnings
nobu 2016-11-06 08:58:02 +0900 (Sun, 06 Nov 2016) New Revision: 56616 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56616 Log: shell.rb: suppress warnings * lib/shell.rb: initialize class instance variables and remove writer methods to be overwritten soon. Modified files: trunk/lib/shell.rb Index: lib/shell.rb =================================================================== --- lib/shell.rb (revision 56615) +++ lib/shell.rb (revision 56616) @@ -99,11 +99,14 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell.rb#L99 @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 https://github.com/ruby/ruby/blob/trunk/lib/shell.rb#L211 # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/