model.name == '' ? Fail.new(:not_valid) : Succ.new(mod end end class Save def self.call(maybe_model) case maybe_model in Succ(model); p model in Fail(message); p message end end end request = Model.:new >> Validate >> Save 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16