Class: Logic
- Inherits:
-
Object
show all
- Defined in:
- lib/logick.rb
Defined Under Namespace
Classes: Result, Scrivener
Class Method Summary
collapse
Class Method Details
4
5
6
|
# File 'lib/logick.rb', line 4
def self.perform(&block)
catch(:fail) { Result.new(type: :success, output: block.call) }
end
|