Class: Logic::Scrivener
- Inherits:
-
Scrivener
- Object
- Scrivener
- Logic::Scrivener
- Defined in:
- lib/logick.rb
Class Method Summary collapse
Class Method Details
.run(atts) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/logick.rb', line 27 def self.run(atts) scrivener = new(atts) if !scrivener.valid? throw(:fail, Result.new(type: :fail, errors: scrivener.errors)) end scrivener.run end |