diff --git a/lib/name_formatter.rb b/lib/name_formatter.rb index 739527c..018cc74 100644 --- a/lib/name_formatter.rb +++ b/lib/name_formatter.rb @@ -58,8 +58,8 @@ def parse(name, last_name_only: false) } end - def parse_formatted(name, **options) - parsed = parse(name, **options) + def parse_formatted(name, **) + parsed = parse(name, **) { prefix: format_prefix(parsed[:prefix]), first_name: format_first_name(parsed[:first_name]), @@ -68,8 +68,8 @@ def parse_formatted(name, **options) } end - def format(name, **options) - parse_formatted(name, **options).values.compact.join(" ") + def format(name, **) + parse_formatted(name, **).values.compact.join(" ") end private