Module: RTM::Validation::Occurrence

Defined in:
rtm/lib/rtm/validation.rb

Instance Method Summary

Instance Method Details

- (Boolean) valid?

Returns:

  • (Boolean)


26
27
28
29
30
# File 'rtm/lib/rtm/validation.rb', line 26

def valid?
  return false unless type
  return false unless parent
  true
end