Include this mixin to access convenient factory methods.
include Fear::Either::Mixin Right('flower') #=> #<Fear::Right value='flower'> Left('beaf') #=> #<Fear::Legt value='beaf'>
Parameters:
Returns:
262 263 264
# File 'lib/fear/either.rb', line 262 def Left(value) Left.new(value) end
268 269 270
# File 'lib/fear/either.rb', line 268 def Right(value) Right.new(value) end