MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / render

Method render

rb/support/generated_note.rb:36–40  ·  view source on GitHub ↗

Renders the standard two-line generated-file marker in the given comment style.

(comment_prefix, generator, command)

Source from the content-addressed store, hash-verified

34
35 # Renders the standard two-line generated-file marker in the given comment style.
36 def self.render(comment_prefix, generator, command)
37 template = File.read(rlocation('_main/scripts/generated_note_template.txt'))
38 text = template.sub('{generator}', generator).sub('{command}', command)
39 text.rstrip.split("\n").map { |line| "#{comment_prefix} #{line}" }.join("\n")
40 end
41end

Callers 6

index.tsxFile · 0.45
Loading.test.tsxFile · 0.45
eFunction · 0.45
rFunction · 0.45
aFunction · 0.45
tinymce.min.jsFile · 0.45

Calls 3

splitMethod · 0.80
readMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected