Created
August 10, 2010 08:01
-
-
Save thex00/516886 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class You | |
require 'relax' | |
THOUGHTS = [] | |
def meditate | |
@m = Comfortable::Relax.new | |
self.close_eyes | |
1.upto(100) { |x| | |
@m.breath_in | |
@.breath_out | |
} | |
self.look(point(rand distance)) | |
until @m.relaxed? do | |
THOUGHTS.pop | |
if THOUGHTS.empty? @m.chill.+= 1 # chill increases a @@var that allows relaxed return true | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment