Sha256: bd7a712dd8a4eb067a52e1d9bb89ade9feb97d4e2ae5ef0df657c4b4e4afa621
Contents?: true
Size: 395 Bytes
Versions: 35
Compression:
Stored size: 395 Bytes
Contents
require "age_calculator" module Renalware class AutomaticAgeCalculator def initialize(age, born_on:, age_on_date:) @age = age @born_on = born_on @age_on_date = age_on_date end def compute if @born_on.present? parts = AgeCalculator.new.compute(@born_on, @age_on_date) Age.new_from(parts) else @age end end end end
Version data entries
35 entries across 35 versions & 1 rubygems