Class: SimpleCovMcp::Commands::BaseCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/simplecov_mcp/commands/base_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cli_context) ⇒ BaseCommand

Returns a new instance of BaseCommand.



12
13
14
15
16
17
18
# File 'lib/simplecov_mcp/commands/base_command.rb', line 12

def initialize(cli_context)
  @cli = cli_context
  @config = cli_context.config
  @source_formatter = Formatters::SourceFormatter.new(
    **config.formatter_options
  )
end

Instance Attribute Details

#cliObject (readonly)

Returns the value of attribute cli.



20
21
22
# File 'lib/simplecov_mcp/commands/base_command.rb', line 20

def cli
  @cli
end

#configObject (readonly)

Returns the value of attribute config.



20
21
22
# File 'lib/simplecov_mcp/commands/base_command.rb', line 20

def config
  @config
end

#source_formatterObject (readonly)

Returns the value of attribute source_formatter.



20
21
22
# File 'lib/simplecov_mcp/commands/base_command.rb', line 20

def source_formatter
  @source_formatter
end