Sha256: af36e916a7dc193db010d5469c6ec3e4f35686862382f619a07f14dccdd7ee86

Contents?: true

Size: 262 Bytes

Versions: 18

Compression:

Stored size: 262 Bytes

Contents

# frozen_string_literal: true

module Dry
  module Types
    # @api private
    module Printable
      # @return [String]
      #
      # @api private
      def to_s
        PRINTER.(self) { super }
      end
      alias_method :inspect, :to_s
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
dry-types-1.7.2 lib/dry/types/printable.rb
dry-types-1.7.1 lib/dry/types/printable.rb
dry-types-1.7.0 lib/dry/types/printable.rb
dry-types-1.6.1 lib/dry/types/printable.rb
dry-types-1.6.0 lib/dry/types/printable.rb
dry-types-1.5.1 lib/dry/types/printable.rb
dry-types-1.5.0 lib/dry/types/printable.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/dry-types-1.4.0/lib/dry/types/printable.rb
dry-types-1.4.0 lib/dry/types/printable.rb
dry-types-1.3.1 lib/dry/types/printable.rb
dry-types-1.3.0 lib/dry/types/printable.rb
dry-types-1.2.2 lib/dry/types/printable.rb
dry-types-1.2.1 lib/dry/types/printable.rb
dry-types-1.2.0 lib/dry/types/printable.rb
dry-types-1.1.1 lib/dry/types/printable.rb
dry-types-1.1.0 lib/dry/types/printable.rb
dry-types-1.0.1 lib/dry/types/printable.rb
dry-types-1.0.0 lib/dry/types/printable.rb