Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

UnionSerializer doesn't need to use _Deferred

+1 -1
+1 -1
lib/literal/serializers/union_serializer.rb
··· 5 5 6 6 def initialize(context) 7 7 @context = context 8 - @type = _Deferred { @context.type } 8 + @type = @context.type 9 9 @kind = _Predicate("SerializableUnionKind") do |union| 10 10 next false unless Literal::Types::UnionType === union 11 11