aboutsummaryrefslogtreecommitdiffstats
path: root/sample/biorhythm.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
commit3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b (patch)
treec4a278220ba8141b829c5c7b0777c1049cfe413c /sample/biorhythm.rb
parent39da1b63699faf30c86e753e193c29b81b16136d (diff)
downloadruby-3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b.tar.gz
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/biorhythm.rb')
-rw-r--r--sample/biorhythm.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/sample/biorhythm.rb b/sample/biorhythm.rb
index 7a8da7d124..bd7c39f5aa 100644
--- a/sample/biorhythm.rb
+++ b/sample/biorhythm.rb
@@ -1,13 +1,13 @@
#!/usr/local/bin/ruby
#
-# biorhythm.rb -
+# biorhythm.rb -
# $Release Version: $
# $Revision$
# by Yasuo OHBA(STAFS Development Room)
#
# --
#
-#
+#
#
# probably based on:
@@ -91,7 +91,7 @@ display_period = options[:days]
if ausgabeart == "v"
print_header(bd.year, bd.month, bd.day, dd - bd, bd.strftime("%a"))
print "\n"
-
+
phys, emot, geist = get_position(dd - bd)
printf "Biorhythm: %04d.%02d.%02d\n", dd.year, dd.month, dd.day
printf "Physical: %d%%\n", phys
@@ -104,10 +104,10 @@ else
print " -------------------------+-------------------------\n"
print " Bad Condition | Good Condition\n"
print " -------------------------+-------------------------\n"
-
+
(dd - bd).step(dd - bd + display_period) do |z|
phys, emot, geist = get_position(z)
-
+
printf "%04d.%02d.%02d : ", dd.year, dd.month, dd.day
p = (phys / 2.0 + 0.5).to_i
e = (emot / 2.0 + 0.5).to_i