Class: Feeligo::Stickers::StickerImageTag
- Inherits:
-
Object
- Object
- Feeligo::Stickers::StickerImageTag
- Defined in:
- lib/feeligo/stickers/sticker_image_tag.rb
Instance Method Summary collapse
-
#initialize(path, opts) ⇒ StickerImageTag
constructor
A new instance of StickerImageTag.
- #to_s ⇒ Object
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_s ⇒ Object
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 |