Top Level Namespace

Defined Under Namespace

Modules: Ronad

Instance Method Summary collapse

Instance Method Details

#Default(fallback, value) ⇒ Object



14
# File 'lib/ronad/sugar.rb', line 14

def Default(fallback, value) ; Ronad::Default.new(fallback, value) end

#Eventually(&b) ⇒ Object



15
# File 'lib/ronad/sugar.rb', line 15

def Eventually(&b); Ronad::Eventually.new(b) end

#Just(value) ⇒ Object



12
# File 'lib/ronad/sugar.rb', line 12

def Just(value); Ronad::Just.new(value) end

#JustOne(*values) ⇒ Object



13
# File 'lib/ronad/sugar.rb', line 13

def JustOne(*values); Ronad::JustOne.new(*values) end

#Many(value, **kargs) ⇒ Object



10
# File 'lib/ronad/sugar.rb', line 10

def Many(value, **kargs) ; Ronad::Many.new(value, **kargs) end

#Maybe(*values) ⇒ Object



9
# File 'lib/ronad/sugar.rb', line 9

def Maybe(*values) ; Ronad::Maybe.from_multiple_values(*values) end

#One(value, **kargs) ⇒ Object



11
# File 'lib/ronad/sugar.rb', line 11

def One(value, **kargs) ; Ronad::One.new(value, **kargs) end