Sha256: 9d49ba024ab15cc48ba4e9ba9ab70e24b24e5a465ab4fe6b187f6612a320e130

Contents?: true

Size: 379 Bytes

Versions: 32

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true
# typed: true

class T::Private::DeclState
  def self.current
    Thread.current[:opus_types__decl_state] ||= self.new
  end

  def self.current=(other)
    Thread.current[:opus_types__decl_state] = other
  end

  attr_accessor :active_declaration
  attr_accessor :skip_next_on_method_added

  def reset!
    self.active_declaration = nil
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
sorbet-runtime-0.4.4461 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4458 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4456 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4455 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4453 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4452 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4451 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4450 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4447 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4446 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4445 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4443 lib/types/private/decl_state.rb