Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Proc#source_location

prc.source_location → [String, Integer]

Returns the Ruby source filename and line number containing this proc or nil if this proc was not defined in Ruby (i.e. native).

See also #ruby2_keywords #to_proc #parameters #to_s also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1