Module: Resulting::Helpers::ClassMethods

Defined in:
lib/resulting/helpers.rb

Instance Method Summary collapse

Instance Method Details

#Failure(*args, &block) ⇒ Object

rubocop:disable Naming/MethodName



12
13
14
# File 'lib/resulting/helpers.rb', line 12

def Failure(*args, &block) # rubocop:disable Naming/MethodName
  Resulting::Result.failure(*args, &block)
end

#Success(*args, &block) ⇒ Object

rubocop:disable Naming/MethodName



8
9
10
# File 'lib/resulting/helpers.rb', line 8

def Success(*args, &block) # rubocop:disable Naming/MethodName
  Resulting::Result.success(*args, &block)
end