class RhetButler::Includer
Attributes
path[RW]
slides[R]
Public Class Methods
new()
click to toggle source
# File lib/rhet-butler/slide-includer.rb, line 9 def initialize @slides = [] end
Public Instance Methods
each() { |slide| ... }
click to toggle source
# File lib/rhet-butler/slide-includer.rb, line 23 def each if block_given? @slides.each{|slide| yield slide} else @slides.each end end
init_with(coder)
click to toggle source
# File lib/rhet-butler/slide-includer.rb, line 13 def init_with(coder) unless coder.type == :scalar raise "!include with non-scalar - use a path string" end @path = coder.scalar end
load(loader)
click to toggle source
# File lib/rhet-butler/slide-includer.rb, line 31 def load(loader) loader = loader.dup @slides = loader.load_file(path) loader end