Class: EmbedRb::BasicImage
- Inherits:
-
Object
- Object
- EmbedRb::BasicImage
- Includes:
- Base
- Defined in:
- lib/embedrb/image/embed_images.rb
Instance Method Summary collapse
-
#initialize(input, output, options, embeds) ⇒ BasicImage
constructor
A new instance of BasicImage.
Methods included from Base
#embed, #process, #shorten, #url_to_text
Constructor Details
#initialize(input, output, options, embeds) ⇒ BasicImage
Returns a new instance of BasicImage.
8 9 10 11 12 13 14 15 |
# File 'lib/embedrb/image/embed_images.rb', line 8 def initialize(input, output, , ) @input = input @output = output @embeds = @options = @regex = /((?:https?):\/\/\S*\.(?:gif|jpg|jpeg|tiff|png|svg|webp))/mi @service = :image end |