class Lecture::Slide
Attributes
content[RW]
format[RW]
options[RW]
Public Class Methods
new(content:, format:, **options)
click to toggle source
# File lib/lecture/slide.rb, line 7 def initialize(content:, format:, **options) @content = content @format = format @options = options end
Public Instance Methods
display()
click to toggle source
# File lib/lecture/slide.rb, line 13 def display type_class.new(content: content, **options).display end
Private Instance Methods
type_class()
click to toggle source
# File lib/lecture/slide.rb, line 19 def type_class "Lecture::Slide::#{format.to_s.classify}".constantize end