Class: RubyCode::Views::Formatter::DebugToolInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/rubycode/views/formatter/debug_tool_info.rb

Overview

Builds debug mode tool information display

Class Method Summary collapse

Class Method Details

.build(tool_name:, arguments:) ⇒ Object



10
11
12
13
# File 'lib/rubycode/views/formatter/debug_tool_info.rb', line 10

def self.build(tool_name:, arguments:)
  pastel = Pastel.new
  "\n#{pastel.yellow("[TOOL]")} #{tool_name}\n   #{pastel.dim("Args:")} #{arguments.inspect}"
end