class Marksman::Presentation

Attributes

filename[RW]
metadata[RW]
slides[RW]
theme[RW]

Public Class Methods

new(options) click to toggle source
# File lib/marksman/presentation.rb, line 6
def initialize(options)
  @filename = options[:filename]
  @slides   = options[:slides] || []
  @metadata = defaults(filename).merge(options[:metadata] || {})
  @theme    = Theme.new @metadata[:theme]
end

Public Instance Methods

defaults(filename) click to toggle source
# File lib/marksman/presentation.rb, line 17
def defaults(filename)
  {
    filename: filename,
    title: filename,
    theme: 'plain'
  }
end
title() click to toggle source
# File lib/marksman/presentation.rb, line 13
def title
  @metadata[:title]
end