Skip to content

Commit

Permalink
fix: move require to outside
Browse files Browse the repository at this point in the history
  • Loading branch information
thadeu committed May 6, 2024
1 parent 76b6fa5 commit 4a79b02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
13 changes: 7 additions & 6 deletions lib/zx.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

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

module Zx
require 'zx/version'
require 'zx/fmap'
require 'zx/given'
require 'zx/mixin'
require 'zx/reflect'
require 'zx/result'
end
8 changes: 4 additions & 4 deletions lib/zx/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def success!(value = nil, type: :ok)
self
end

include Zx::Mixin
extend Zx::Mixin
include ::Zx::Mixin
extend ::Zx::Mixin
end

include Zx::Mixin
extend Zx::Mixin
include ::Zx::Mixin
extend ::Zx::Mixin
end

0 comments on commit 4a79b02

Please sign in to comment.