lib/slide_hero/slide.rb in slide_hero-0.0.5 vs lib/slide_hero/slide.rb in slide_hero-0.0.6

- old
+ new

@@ -38,16 +38,20 @@ def image(*args, **kwargs) points << Image.new(*args, **kwargs).compile end + def remote_image(*args, **kwargs) + points << RemoteImage.new(*args, **kwargs).compile + end + def media(*args, **kwargs) points << Media.new(*args, **kwargs).compile end private def size_to_markup - { + { large: :h1, medium: :h2, small: :h3 }[headline_size] end