Method: T::Enum#_bind_name

Defined in:
lib/sorbet/eraser/t/enum.rb

#_bind_name(const_name) ⇒ Object



168
169
170
171
172
# File 'lib/sorbet/eraser/t/enum.rb', line 168

def _bind_name(const_name)
  @const_name = const_name
  @serialized_val = const_to_serialized_val(const_name) if @serialized_val.nil?
  freeze
end