Class: PagesCore::ImageEmbedder

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::AssetTagHelper, ImagesHelper
Defined in:
app/formatters/pages_core/image_embedder.rb

Instance Method Summary collapse

Methods included from ImagesHelper

#dynamic_image_tag, #image_caption, #image_figure, #original_dynamic_image_tag, #picture, #picture_tag, #uncropped_dynamic_image_tag

Constructor Details

#initialize(string) ⇒ ImageEmbedder

Returns a new instance of ImageEmbedder.



9
10
11
# File 'app/formatters/pages_core/image_embedder.rb', line 9

def initialize(string)
  @string = string
end

Instance Method Details

#embedObject



13
14
15
# File 'app/formatters/pages_core/image_embedder.rb', line 13

def embed
  parse_images(@string)
end