Sha256: c78ec191307a740020374a3f4233a6bd417873f7dbbbfd301868cdc2175a7bf2

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 Bytes

Contents

module StimulusReflex::TestReflexPatches
  def get(instance_variable)
    instance_variable_get("@#{instance_variable}")
  end

  def run(method_name, *args)
    process(method_name, *args)
  end

  def cable_ready
    @cable_ready ||= FableReady.new
  end

  class FableReady
    def [](key)
      self
    end

    def method_missing(*)
      true || super
    end

    def respond_to_missing?(*)
      true
    end
  end
end

StimulusReflex::Reflex.include(StimulusReflex::TestReflexPatches)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stimulus_reflex_testing-0.2.2 lib/stimulus_reflex/test_reflex_patches.rb
stimulus_reflex_testing-0.2.1 lib/stimulus_reflex/test_reflex_patches.rb
stimulus_reflex_testing-0.2.0 lib/stimulus_reflex/test_reflex_patches.rb