Class: Tidewave::Tools::GetSourceLocation
- Defined in:
- lib/tidewave/tools/get_source_location.rb
Instance Method Summary collapse
Methods inherited from Base
file_system_tool, file_system_tool?
Instance Method Details
#call(module_name:, function_name: nil) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/tidewave/tools/get_source_location.rb', line 24 def call(module_name:, function_name: nil) file_path, line_number = get_source_location(module_name, function_name) { file_path: file_path, line_number: line_number }.to_json end |