Module: Result::DSL

Included in:
EY::Serverside::Slug::Generator, EY::Serverside::Slug::Migrator, Railway, Result
Defined in:
lib/result/dsl.rb

Instance Method Summary collapse

Instance Method Details

#Failure(error) ⇒ Object


11
12
13
# File 'lib/result/dsl.rb', line 11

def Failure(error)
  Failure.new(error)
end

#Success(value) ⇒ Object


7
8
9
# File 'lib/result/dsl.rb', line 7

def Success(value)
  Success.new(value)
end