Method: Faker::HTML.script
- Defined in:
- lib/faker/default/html.rb
.script ⇒ String
Generates a random <script> tag with the ‘src` attribute set to a random URL.
138 139 140 |
# File 'lib/faker/default/html.rb', line 138 def script "<script src=\"#{Faker::Internet.url}.js\"></script>" end |