Skip to content

Instantly share code, notes, and snippets.

@thex00
Created August 10, 2010 08:01
Show Gist options
  • Save thex00/516886 to your computer and use it in GitHub Desktop.
Save thex00/516886 to your computer and use it in GitHub Desktop.
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