Rodney asking me if I want to go for a smoke?

class Smokers <  ActiveRecord:: Base
 belongs_to      :heart_failure_statistics
 has_many        :cigarettes
 attr_accessor   :mins_since_last_puff

 before_validation :check_cigarettes

 def smoke?
   if mins_since_last_puff  >= 60
     write_warren("Smoke?") 
   end  
 end
end

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

my errant code

tesing. warren says this is broke :(

new fangled languages

in good old lisp it would have simply been:
(smokeP)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 14 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.