Class: SimpleCovMcp::Commands::BaseCommand
- Inherits:
-
Object
- Object
- SimpleCovMcp::Commands::BaseCommand
- Defined in:
- lib/simplecov_mcp/commands/base_command.rb
Direct Known Subclasses
DetailedCommand, ListCommand, RawCommand, SummaryCommand, TotalsCommand, UncoveredCommand, ValidateCommand, VersionCommand
Instance Attribute Summary collapse
-
#cli ⇒ Object
readonly
Returns the value of attribute cli.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#source_formatter ⇒ Object
readonly
Returns the value of attribute source_formatter.
Instance Method Summary collapse
-
#initialize(cli_context) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
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. ) end |
Instance Attribute Details
#cli ⇒ Object (readonly)
Returns the value of attribute cli.
20 21 22 |
# File 'lib/simplecov_mcp/commands/base_command.rb', line 20 def cli @cli end |
#config ⇒ Object (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_formatter ⇒ Object (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 |