Module: Kind::Result::Methods
- Included in:
- Kind
- Defined in:
- lib/kind/result/methods.rb
Class Method Summary collapse
Instance Method Summary collapse
- #Failure(arg1 = UNDEFINED, arg2 = UNDEFINED) ⇒ Object
- #Success(arg1 = UNDEFINED, arg2 = UNDEFINED) ⇒ Object
Class Method Details
.included(base) ⇒ Object
13 14 15 |
# File 'lib/kind/result/methods.rb', line 13 def self.included(base) base.send(:private, :Success, :Failure) end |
Instance Method Details
#Failure(arg1 = UNDEFINED, arg2 = UNDEFINED) ⇒ Object
5 6 7 |
# File 'lib/kind/result/methods.rb', line 5 def Failure(arg1 = UNDEFINED, arg2 = UNDEFINED) Result::Failure[arg1, arg2] end |
#Success(arg1 = UNDEFINED, arg2 = UNDEFINED) ⇒ Object
9 10 11 |
# File 'lib/kind/result/methods.rb', line 9 def Success(arg1 = UNDEFINED, arg2 = UNDEFINED) Result::Success[arg1, arg2] end |