Class: Logic

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

Defined Under Namespace

Classes: Result, Scrivener

Class Method Summary collapse

Class Method Details

.perform(&block) ⇒ Object



4
5
6
# File 'lib/logick.rb', line 4

def self.perform(&block)
  catch(:fail) { Result.new(type: :success, output: block.call) }
end