Method: Calculator#initialize
- Defined in:
- lib/wilks_calc/calculator.rb
#initialize(sex, bodyweight, weight_lifted) ⇒ Calculator
Returns a new instance of Calculator.
13 14 15 16 17 |
# File 'lib/wilks_calc/calculator.rb', line 13 def initialize(sex, bodyweight, weight_lifted) @sex = sex @bw = bodyweight.to_f @wl = weight_lifted.to_f end |