Class: Split::EncapsulatedHelper::ContextShim

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/split/encapsulated_helper.rb

Instance Method Summary collapse

Methods included from Helper

#ab_test, #active_experiments, #begin_experiment, #exclude_visitor?, #finish_experiment, #finished, #is_ignored_ip_address?, #is_robot?, #override_alternative, #override_present?, #reset!, #split_generically_disabled?

Constructor Details

#initialize(context) ⇒ ContextShim

Returns a new instance of ContextShim



17
18
19
# File 'lib/split/encapsulated_helper.rb', line 17

def initialize(context)
  @context = context
end

Instance Method Details

#ab_userObject



20
21
22
# File 'lib/split/encapsulated_helper.rb', line 20

def ab_user
  @ab_user ||= Split::Persistence.adapter.new(@context)
end