Class: Guider::Font
- Inherits:
-
Object
- Object
- Guider::Font
- Defined in:
- lib/guider/font.rb
Overview
Generates <script> tag for including google font.
Class Method Summary collapse
Class Method Details
.to_html ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/guider/font.rb', line 4 def self.to_html <<-EOHTML <script type="text/javascript"> (function(){ var protocol = (document.location.protocol === "https:") ? "https:" : "http:"; document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />"); })(); </script> EOHTML end |