Class: Runger::Loaders::Base

Inherits:
Object
  • Object
show all
Includes:
Tracing
Defined in:
lib/runger/loaders/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Tracing

capture, current_trace, current_trace_source, source_stack, trace!, trace_stack, with_trace_source

Constructor Details

#initialize(local:) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/runger/loaders/base.rb', line 12

def initialize(local:)
  @local = local
end

Class Method Details

.call(local: Runger::Settings.use_local_files, **options) ⇒ Object



7
8
9
# File 'lib/runger/loaders/base.rb', line 7

def call(local: Runger::Settings.use_local_files, **options)
  new(local:).call(**options)
end

Instance Method Details

#use_local?Boolean

Returns:

  • (Boolean)


16
# File 'lib/runger/loaders/base.rb', line 16

def use_local? = @local == true