Tushar
Results
3
comments of
Tushar
require 'sorbet-runtime' class MyEnum < T::Enum enums do NIL_VARIANT = new # Create without arguments end def self.nil_variant_serialize NIL_VARIANT.nil? ? nil : NIL_VARIANT.serialize end end p(MyEnum.nil_variant_serialize) # This will print...
extend T::Sig xyz = 1 hash = { xyz: xyz }
# typed: true extend T::Sig xyz = 1 hash = {:xyz => xyz} # Using symbols for keys