Module: Gubed

Defined in:
lib/gubed.rb,
lib/gubed/version.rb,
lib/gubed/breakpoint_manager.rb,
lib/gubed/breakpoint_scanner.rb

Defined Under Namespace

Classes: BreakpointManager, BreakpointScanner, Error

Constant Summary collapse

VERSION =
"0.1.0"
Breakpoint =
Data.define(:file, :line_number, :content, :type) do
  def initialize(file:, line_number:, content:, type:)
    super(file: file, line_number: line_number, content: content.strip, type: type)
  end

  def commented?
    content.start_with?("#")
  end

  def location
    "#{file}:#{line_number}"
  end
end