aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/utils.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-07-22 21:30:56 -0400
committerRalph Amissah <ralph@amissah.com>2014-07-22 21:30:56 -0400
commit41796e30e4597c74e7e42c3144dbe5d4fb0687c5 (patch)
treed0615cafae5362873706f04595ee5b9333a758c3 /lib/sisu/v5/utils.rb
parentv5 v6: version & changelog (& rakefile) (diff)
v5 v6: cosmetic code
Diffstat (limited to 'lib/sisu/v5/utils.rb')
-rw-r--r--lib/sisu/v5/utils.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sisu/v5/utils.rb b/lib/sisu/v5/utils.rb
index 4d30d031..4c732a8b 100644
--- a/lib/sisu/v5/utils.rb
+++ b/lib/sisu/v5/utils.rb
@@ -123,7 +123,9 @@ module SiSU_Utils
h
end
def message(msg='')
- @message=(msg.empty?) ? '' : " #{msg}"
+ @message=(msg.nil? || msg.empty?) \
+ ? ''
+ : ' ' + msg
end
def set(v=nil,x=nil)
v=var(v,x)