Sha256: 25d771e69246a9a9ef758ec322bc902353ea63ea0d5e0d4e495ccda391df904f
Contents?: true
Size: 346 Bytes
Versions: 4
Compression:
Stored size: 346 Bytes
Contents
# frozen_string_literal: true module Dry class Struct class Compiler < Types::Compiler def visit_struct(node) struct, _ = node struct.__getobj__ rescue ::WeakRef::RefError if struct.weakref_alive? raise else raise RecycledStructError end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dry-struct-1.6.0 | lib/dry/struct/compiler.rb |
dry-struct-1.5.2 | lib/dry/struct/compiler.rb |
dry-struct-1.5.1 | lib/dry/struct/compiler.rb |
dry-struct-1.5.0 | lib/dry/struct/compiler.rb |