Sha256: 71751a93f7f3d354d0052a764a04b2e6ea1d47a55fa657887b3b4c1c380744ae
Contents?: true
Size: 392 Bytes
Versions: 4
Compression:
Stored size: 392 Bytes
Contents
require 'dry/types/printer' module Dry module Types # @api private class Printer MAPPING[Struct::Sum] = :visit_struct_sum def visit_struct_sum(sum) visit_sum_constructors(sum) do |constructors| visit_options(EMPTY_HASH, sum.meta) do |opts| yield "Struct::Sum<#{constructors}#{opts}>" end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dry-struct-1.2.0 | lib/dry/struct/printer.rb |
dry-struct-1.1.1 | lib/dry/struct/printer.rb |
dry-struct-1.1.0 | lib/dry/struct/printer.rb |
dry-struct-1.0.0 | lib/dry/struct/printer.rb |