Class: Google::Webfonts::LinkTag
- Inherits:
-
Object
- Object
- Google::Webfonts::LinkTag
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/google-webfonts/link_tag.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(request, *opts) ⇒ LinkTag
constructor
A new instance of LinkTag.
Constructor Details
#initialize(request, *opts) ⇒ LinkTag
Returns a new instance of LinkTag.
10 11 12 13 14 15 |
# File 'lib/google-webfonts/link_tag.rb', line 10 def initialize(request, *opts) @request = request @subsets = [] @fonts = (opts) @result = tag(:link, , false, false) end |
Instance Attribute Details
#result ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute result.
6 7 8 |
# File 'lib/google-webfonts/link_tag.rb', line 6 def result @result end |