lib/converters/iframe_embed.rb in convert-0.1.2 vs lib/converters/iframe_embed.rb in convert-0.1.3
- old
+ new
@@ -1,10 +1,12 @@
-module Converters
+module Convert
+ module Converters
- # Iframe embed code
- def iframe_embed(url, options = {})
- options = {:width => 231, :height => 436, :scrolling => 'no', :frameborder => 0}.merge(options)
+ # 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
+ %{<iframe frameborder="#{options[:frameborder]}" scrolling="#{options[:scrolling]}" height="#{options[:height]}" width="#{options[:width]}" src="#{url}"></iframe>}
+ end
+ end
end