dry-types/lib/dry/types/printable.rb

17 lines
262 B
Ruby

# 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