module ReloaderInterceptor

Constants

VERSION

Attributes

enabled[W]
reloader[W]

Public Class Methods

disable!() click to toggle source
# File lib/reloader_interceptor.rb, line 19
def disable!
  @enabled = false
end
enable!() click to toggle source
# File lib/reloader_interceptor.rb, line 15
def enable!
  @enabled = true
end
enabled?() click to toggle source

@return [bool]

# File lib/reloader_interceptor.rb, line 11
def enabled?
  @enabled
end
executor() click to toggle source

@return [Class] A class which inherits ActiveSupport::Executor

# File lib/reloader_interceptor.rb, line 24
def executor
  reloader.executor
end
reloader() click to toggle source

@return [Class] A class which inherits ActiveSupport::Reloader

# File lib/reloader_interceptor.rb, line 29
def reloader
  @reloader ||= begin
    r = Class.new(ActiveSupport::Reloader)
    r.executor = Class.new(ActiveSupport::Executor)
    r
  end
end