diff --git a/bin/console b/bin/console index 36b19b4..050ba2c 100755 --- a/bin/console +++ b/bin/console @@ -7,7 +7,7 @@ require "dry/types" Dry::Types.load_extensions(:maybe) module Types - include Dry::Types() + include Dry.Types() end begin diff --git a/lib/dry/types.rb b/lib/dry/types.rb index e1d8e98..d93b9fe 100644 --- a/lib/dry/types.rb +++ b/lib/dry/types.rb @@ -180,7 +180,7 @@ module Dry # # module Types # # imports all types as constants, uses modules for namespaces - # include Dry::Types() + # include Dry.Types() # end # # strict types are exported by default # Types::Integer @@ -191,7 +191,7 @@ module Dry # @example changing default types # # module Types - # include Dry::Types(default: :nominal) + # include Dry.Types(default: :nominal) # end # Types::Integer # # => #]> @@ -199,7 +199,7 @@ module Dry # @example cherry-picking namespaces # # module Types - # include Dry::Types(:strict, :coercible) + # include Dry.Types(:strict, :coercible) # end # # cherry-picking discards default types, # # provide the :default option along with the list of @@ -208,7 +208,7 @@ module Dry # # @example custom names # module Types - # include Dry::Types(coercible: :Kernel) + # include Dry.Types(coercible: :Kernel) # end # Types::Kernel::Integer # # => # fn=Kernel.Integer>]> diff --git a/lib/dry/types/module.rb b/lib/dry/types/module.rb index f15d48a..99a0712 100644 --- a/lib/dry/types/module.rb +++ b/lib/dry/types/module.rb @@ -8,7 +8,7 @@ module Dry # Export types registered in a container as module constants. # @example # module Types - # include Dry::Types(:strict, :coercible, :nominal, default: :strict) + # include Dry.Types(:strict, :coercible, :nominal, default: :strict) # end # # Types.constants