Sha256: edac5296ac6bfc1edfdd31137a5dc877be12993df0674840e030ac251b8ce95d
Contents?: true
Size: 660 Bytes
Versions: 10
Compression:
Stored size: 660 Bytes
Contents
module Fixtures module HTML extend self TEMPLATE = <<-HTML <html> <head> %s </head> <body> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p> </body> </html> HTML LINK = <<-LINK <link rel='stylesheet' href='%s' /> LINK def with_css_links(*files) links = [] files.each do |file| links << LINK % "http://example.com/#{file}" end TEMPLATE % links.join end end end
Version data entries
10 entries across 10 versions & 2 rubygems