Module: E1614hnCalc
- Defined in:
- lib/e1614hn_calc.rb,
lib/e1614hn_calc/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.birthday(year) ⇒ Object
10 11 12 |
# File 'lib/e1614hn_calc.rb', line 10 def self.birthday year Date.today.year - year end |
.bmi(weight, height) ⇒ Object
14 15 16 17 |
# File 'lib/e1614hn_calc.rb', line 14 def self.bmi weight, height height = height.to_f/ 100 weight.to_f / (height * height) end |
.version ⇒ Object
6 7 8 |
# File 'lib/e1614hn_calc.rb', line 6 def self.version E1614hnCalc::VERSION end |