lib/LittleWeasel/dictionary_key.rb in LittleWeasel-4.0.0 vs lib/LittleWeasel/dictionary_key.rb in LittleWeasel-5.0.0
- old
+ new
@@ -17,13 +17,13 @@
attr_reader :language, :region
def initialize(language:, region: nil, tag: nil)
validate_language language: language
- self.language = self.class.normalize_language language
+ self.language = normalize_language language
validate_region region: region
- self.region = self.class.normalize_region region
+ self.region = normalize_region region
validate_tag tag: tag
self.tag = tag
end