lib/datacite/mapping/related_identifier.rb in datacite-mapping-0.2.5 vs lib/datacite/mapping/related_identifier.rb in datacite-mapping-0.3.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'xml/mapping_extensions' module Datacite module Mapping @@ -179,20 +181,20 @@ self.scheme_uri = scheme_uri self.scheme_type = scheme_type end def value=(value) - fail ArgumentError, 'Value cannot be empty or nil' unless value && !value.empty? + raise ArgumentError, 'Value cannot be empty or nil' unless value && !value.empty? @value = value end def identifier_type=(value) - fail ArgumentError, 'Identifier type cannot be empty or nil' unless value + raise ArgumentError, 'Identifier type cannot be empty or nil' unless value @identifier_type = value end def relation_type=(value) - fail ArgumentError, 'Relation type cannot be nil' unless value + raise ArgumentError, 'Relation type cannot be nil' unless value @relation_type = value end root_element_name 'relatedIdentifier'