Skip to content

Commit

Permalink
remove Given class
Browse files Browse the repository at this point in the history
  • Loading branch information
thadeu committed May 7, 2024
1 parent 14736e0 commit e2c399c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 131 deletions.
5 changes: 4 additions & 1 deletion lib/zx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require 'zx/version'
require 'zx/fmap'
require 'zx/given'
require 'zx/reflect'
require 'zx/result'

Expand All @@ -23,4 +22,8 @@ def Try(default = nil, options = {})
rescue StandardError => e
Failure[default || options.fetch(:or, nil)]
end

def Given(input)
Try { input }
end
end
77 changes: 0 additions & 77 deletions lib/zx/given.rb

This file was deleted.

53 changes: 0 additions & 53 deletions spec/lib/zx/given_spec.rb

This file was deleted.

0 comments on commit e2c399c

Please sign in to comment.