Class: Feeligo::Stickers::StickerImageTag

Inherits:
Object
  • Object
show all
Defined in:
lib/feeligo/stickers/sticker_image_tag.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, opts) ⇒ StickerImageTag

Returns a new instance of StickerImageTag.



6
7
8
9
# File 'lib/feeligo/stickers/sticker_image_tag.rb', line 6

def initialize path, opts
  @path = path
  @opts = opts
end

Instance Method Details

#to_sObject



12
13
14
15
# File 'lib/feeligo/stickers/sticker_image_tag.rb', line 12

def to_s
  code = build_tag
  if code.respond_to?(:html_safe) then code.html_safe else code end
end