lib/healthcare_phony/religion.rb in healthcare_phony-0.4.1 vs lib/healthcare_phony/religion.rb in healthcare_phony-0.5.0
- old
+ new
@@ -9,10 +9,10 @@
# Public: Initializes an EthnicGroup. Pass in hash of different parameters, currently this includes:
# religion_data_file - YAML file containing religion information to randomly choose from if different options than
# those that come with gem are desired. See {religion.yml}[https://github.com/austinmoody/healthcare_phony/blob/main/lib/healthcare_phony/data_files/religion.yml]
# for default values.
- def initialize(**init_args)
+ def initialize(init_args = {})
# TODO: allow a way for caller to pass in a custom set of codes to choose from
# TODO: allow a way for caller to pass in % blank
data_file = if !init_args[:religion_data_file].nil?
init_args[:religion_data_file]