Class: Genericode::ShortName

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/genericode/short_name.rb

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

Rule 39: Must not contain whitespace characters

Returns:

  • (Boolean)


24
25
26
# File 'lib/genericode/short_name.rb', line 24

def valid?
  !content.match(/\s/)
end