framingham.rb in framingham-0.1.20130712221655 vs framingham.rb in framingham-0.1.20130719170918
- old
+ new
@@ -1,20 +1,29 @@
#!/usr/bin/ruby
-load 'framingham/version.rb'
-load 'framingham/heartdisease.rb'
+require './framingham/version'
module Framingham extend self
def help
"Framingham display help info..."
end
protected
+$, = ", " #default join
+
+GENDERS = [
+ :male,
+ :female
+] unless defined? GENDERS
+
def to_i value
(value.eql? true or value.to_s == "true" or (
value.to_f != 0 if value.respond_to? 'to_f'
)) ? 1 : 0
end
+
+load './framingham/heartdisease.rb'
+load './framingham/diabetes.rb'
end