Class: Mumukit::Assistant

Inherits:
Object
  • Object
show all
Defined in:
lib/mumuki/domain.rb

Class Method Summary collapse

Class Method Details

.valid?(rules) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/mumuki/domain.rb', line 45

def self.valid?(rules)
  !!parse(rules.map(&:deep_symbolize_keys)) rescue false
end