Class: Datacite::Mapping::ReadOnlyArrayNode
- Inherits:
-
XML::Mapping::ArrayNode
- Object
- XML::Mapping::ArrayNode
- Datacite::Mapping::ReadOnlyArrayNode
- Includes:
- ReadOnlyNodes
- Defined in:
- lib/datacite/mapping/read_only_nodes.rb
Instance Method Summary collapse
Methods included from ReadOnlyNodes
#obj_to_xml, #value_from, #value_str, warn, #warn_reason
Instance Method Details
#warn_ignored(val)
63 64 65 66 67 68 |
# File 'lib/datacite/mapping/read_only_nodes.rb', line 63 def warn_ignored(val) raise ArgumentError, "Expected array, got #{val}" unless val.respond_to?(:empty?) return if val.empty? super end |