module TestBench::Fixture::Controls::CallerLocation
Constants
- Implementation
Public Class Methods
example(file: nil, line_number: nil, label: nil)
click to toggle source
# File lib/test_bench/fixture/controls/caller_location.rb, line 5 def self.example(file: nil, line_number: nil, label: nil) file ||= self.file line_number ||= self.line_number label ||= self.label "#{file}:#{line_number}:in `#{label}'" end
file()
click to toggle source
# File lib/test_bench/fixture/controls/caller_location.rb, line 13 def self.file 'lib/some_dir/some_file.rb' end
label()
click to toggle source
# File lib/test_bench/fixture/controls/caller_location.rb, line 21 def self.label 'some_method' end
line_number()
click to toggle source
# File lib/test_bench/fixture/controls/caller_location.rb, line 17 def self.line_number 11 end