Sha256: 196ffb39764931377dd31d1db48c5b97701507d578ac7cb70d9dfafaf56e5c80

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

module Convert
  module Converters

    # Iframe embed code
    def iframe_embed(url, options = {})
      options = {:width => 231, :height => 436, :scrolling => 'no', :frameborder => 0}.merge(options)

      %{<iframe frameborder="#{options[:frameborder]}" scrolling="#{options[:scrolling]}" height="#{options[:height]}" width="#{options[:width]}" src="#{url}"></iframe>}
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
convert-0.1.7 lib/converters/iframe_embed.rb
convert-0.1.6 lib/converters/iframe_embed.rb
convert-0.1.5 lib/converters/iframe_embed.rb
convert-0.1.4 lib/converters/iframe_embed.rb
convert-0.1.3 lib/converters/iframe_embed.rb