Sha256: a6e7586c7399d79a69fcf2ff39265d67948f9605d253a4cba8fb4614944191f8
Contents?: true
Size: 658 Bytes
Versions: 5
Compression:
Stored size: 658 Bytes
Contents
# frozen_string_literal: true module StimulusReflex class << self def configure yield configuration end def configuration @configuration ||= Configuration.new end alias_method :config, :configuration end class Configuration attr_accessor :on_failed_sanity_checks, :parent_channel, :logging DEFAULT_LOGGING = proc { "[#{session_id}] #{operation_counter.magenta} #{reflex_info.green} -> #{selector.cyan} via #{mode} Morph (#{operation.yellow})" } def initialize @on_failed_sanity_checks = :exit @parent_channel = "ApplicationCable::Channel" @logging = DEFAULT_LOGGING end end end
Version data entries
5 entries across 5 versions & 1 rubygems