Permalink
Browse files

Fix a warning when evaluating a instance variable usage in a Module.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1842 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent eb8ef70 commit e3502a7726d2aafe196223f25e90a3008599e63a luislavena committed Jul 11, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −0 ChangeLog
  2. +1 −1 test/mockgemui.rb
View
@@ -2,6 +2,7 @@
2008-07-11 Luis Lavena <luislavena@gmail.com>
* setup.rb: Properly build --destdir folder structure using Pathname.
+ * test/mockgemui.rb: Fix warnings about instance variables in a module.
2008-07-02 Phil Hagelberg <technomancy@gmail.com>
View
@@ -17,7 +17,7 @@ module TTY
attr_accessor :tty
def tty?()
- @tty = true if @tty.nil?
+ @tty = true unless defined?(@tty)
@tty
end

0 comments on commit e3502a7

Please sign in to comment.