lib/datacite/mapping/name_identifier.rb in datacite-mapping-0.1.5 vs lib/datacite/mapping/name_identifier.rb in datacite-mapping-0.1.6
- old
+ new
@@ -16,13 +16,13 @@
uri_node :scheme_uri, '@schemeURI', default_value: nil
# @!attribute [rw] value
# @return [String] the identifier value. Cannot be nil.
text_node :value, 'text()'
- alias_method :_scheme=, :scheme=
+ maybe_alias :_scheme=, :scheme=
private :_scheme=
- alias_method :_value=, :value=
+ maybe_alias :_value=, :value=
private :_value=
# Initializes a new {NameIdentifier}
# @param scheme [Scheme] the name identifier scheme. Cannot be nil.
# @param scheme_uri [URI, nil] the URI of the identifier scheme. Optional.