lib/slideshow/helpers/step_helper.rb in slideshow-0.9.1 vs lib/slideshow/helpers/step_helper.rb in slideshow-0.9.2
- old
+ new
@@ -1,6 +1,7 @@
-module StepHelper
+module Slideshow
+ module StepHelper
def step( opts={}, &blk )
puts " Adding HTML div block for step (incremental display)..."
@@ -12,20 +13,21 @@
after = "</div>\n"
after << "<!-- end step -->\n"
html = ""
- html << guard_text( before )
+ html << guard_block( before )
html << text
- html << guard_text( after )
+ html << guard_block( after )
concat_erb( html, blk.binding )
return
end
end # module StepHelper
+end # module Slideshow
class Slideshow::Gen
- include StepHelper
+ include Slideshow::StepHelper
end