Class: SpecForge::Step::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/spec_forge/step/source.rb

Overview

Represents the source location of a step in a blueprint file

Tracks which file and line number a step came from, which is useful for error messages and debugging output.

Instance Method Summary collapse

Instance Method Details

#to_sString

Returns a formatted string representation of the source location

Returns:

  • (String)

    Format: "file_name:line_number"



17
18
19
# File 'lib/spec_forge/step/source.rb', line 17

def to_s
  "#{file_name}:#{line_number}"
end