Top Level Namespace

Defined Under Namespace

Modules: Enumerable, Errgonomic Classes: Array, FalseClass, Hash, NilClass, Numeric, Object, SomeValidator, String, Symbol, Time, TrueClass

Instance Method Summary collapse

Instance Method Details

#Err(value) ⇒ Object

Global convenience method for constructing an Err result.



691
692
693
# File 'lib/errgonomic/result.rb', line 691

def Err(value)
  Errgonomic::Result::Err.new(value)
end

#NoneObject

Global convenience for constructing a None value.



1033
1034
1035
# File 'lib/errgonomic/option.rb', line 1033

def None
  Errgonomic::Option::None.new
end

#Ok(value) ⇒ Object

Global convenience method for constructing an Ok result.



686
687
688
# File 'lib/errgonomic/result.rb', line 686

def Ok(value)
  Errgonomic::Result::Ok.new(value)
end

#Some(value) ⇒ Object

Global convenience for constructing a Some value.



1028
1029
1030
# File 'lib/errgonomic/option.rb', line 1028

def Some(value)
  Errgonomic::Option::Some.new(value)
end