Class: Lecture::Slide
- Inherits:
-
Object
- Object
- Lecture::Slide
- Defined in:
- lib/lecture/slide.rb,
lib/lecture/slide/base.rb,
lib/lecture/slide/code.rb,
lib/lecture/slide/block.rb,
lib/lecture/slide/center.rb,
lib/lecture/slide/section.rb
Defined Under Namespace
Classes: Base, Block, Center, Code, Section
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#format ⇒ Object
Returns the value of attribute format.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #display ⇒ Object
-
#initialize(content:, format:, **options) ⇒ Slide
constructor
A new instance of Slide.
Constructor Details
#initialize(content:, format:, **options) ⇒ Slide
Returns a new instance of Slide.
7 8 9 10 11 |
# File 'lib/lecture/slide.rb', line 7 def initialize(content:, format:, **) @content = content @format = format = end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
5 6 7 |
# File 'lib/lecture/slide.rb', line 5 def content @content end |
#format ⇒ Object
Returns the value of attribute format.
5 6 7 |
# File 'lib/lecture/slide.rb', line 5 def format @format end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/lecture/slide.rb', line 5 def end |
Instance Method Details
#display ⇒ Object
13 14 15 |
# File 'lib/lecture/slide.rb', line 13 def display type_class.new(content: content, **).display end |