Module: RTM::Validation::Variant
- Defined in:
- rtm/lib/rtm/validation.rb
Instance Method Summary
Instance Method Details
- (Boolean) valid?
47 48 49 50 51 52 53 54 |
# File 'rtm/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 |