Class: Google::Webfonts::LinkTag

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/google-webfonts/link_tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = fonts_from_options(opts)
  @result = tag(:link, link_options, false, false)
end

Instance Attribute Details

#resultObject (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