Class: LogicaCompiler::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/logica_compiler/commands/base.rb

Direct Known Subclasses

Clean, Compile, Install, Logica, Version, Watch

Instance Method Summary collapse

Constructor Details

#initialize(env: Deps::Env.new, shell: Deps::Shell.new, clock: Deps::Clock.new, config_loader: Config.method(:load!), which: Util.method(:which)) ⇒ Base

Returns a new instance of Base.



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/logica_compiler/commands/base.rb', line 12

def initialize(
  env: Deps::Env.new,
  shell: Deps::Shell.new,
  clock: Deps::Clock.new,
  config_loader: Config.method(:load!),
  which: Util.method(:which)
)
  @env = env
  @shell = shell
  @clock = clock
  @config_loader = config_loader
  @which = which
end