Module: RTM::Validation::Variant
- Defined in:
- lib/rtm/validation.rb
Instance Method Summary collapse
Instance Method Details
#valid? ⇒ Boolean
47 48 49 50 51 52 53 54 |
# File 'lib/rtm/validation.rb', line 47 def valid? return false if scope.empty? return false if parent.scope.size == scope.size parent.scope.each do |t| return false unless scope.include?(t) end true end |