module Datacite::Mapping::EmptyNodeUtils

Public Instance Methods

not_empty(element) click to toggle source
# File lib/datacite/mapping/empty_filtering_nodes.rb, line 9
def not_empty(element)
  return unless element

  text = element.text
  empty = text.nil? || text.strip.empty?
  warn "Ignoring empty element #{element}" if empty
  !empty
end