Class: Imgix::Rails::Tag

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers, UrlHelper
Defined in:
lib/imgix/rails/tag.rb

Direct Known Subclasses

ImageTag, PictureTag

Instance Method Summary collapse

Methods included from UrlHelper

#ix_image_url

Constructor Details

#initialize(path, source: nil, tag_options: {}, url_params: {}, srcset_options: {}, attribute_options: {}) ⇒ Tag

Returns a new instance of Tag.



8
9
10
11
12
13
14
15
# File 'lib/imgix/rails/tag.rb', line 8

def initialize(path, source: nil, tag_options: {}, url_params: {}, srcset_options: {}, attribute_options: {})
  @path = path
  @source = source
  @tag_options = tag_options
  @url_params = url_params
  @srcset_options = srcset_options
  @attribute_options = attribute_options
end