# File lib/rspec/core/metadata.rb, line 6 def [](key) return super if has_key?(key) case key when :location store(:location, location) when :file_path, :line_number file_path, line_number = file_and_line_number store(:file_path, file_path) store(:line_number, line_number) self[key] else super end end
# File lib/rspec/core/metadata.rb, line 25 def file_and_line_number first_caller_from_outside_rspec =~ /(.+?):(\d+)(|:\d+)/ return [$1, $2.to_i] end
Generated with the Darkfish Rdoc Generator 2.