class Presentation::SlidesDSL
Attributes
slides[R]
Public Instance Methods
slide(type = nil, &block)
click to toggle source
# File lib/presentation/dsl.rb, line 12 def slide(type = nil, &block) if type and type.is_a? Class s = type.new s.instance_eval(&block) slides << s else s = SlideDSL.new s.instance_eval(&block) slides << s.slide end # FIXME: why doesnt this work? # s = Slide.new # s.instance_eval &block # slides << s end