lib/maybe.rb in zx-monads-0.0.2 vs lib/maybe.rb in zx-monads-0.0.3
- old
+ new
@@ -1,9 +1,7 @@
# frozen_string_literal: true
class Maybe
- attr_reader :value
-
IsBlank = ->(value) { value.nil? || value.to_s.strip&.empty? || !value }
def self.of(...)
new.of(...)
end
\ No newline at end of file