Class: Tkn2::Slide
- Inherits:
-
Object
show all
- Defined in:
- lib/tkn2/slide.rb
Defined Under Namespace
Classes: Center, Code, SectionHeader
Instance Method Summary
collapse
Constructor Details
#initialize(*args) ⇒ Slide
Returns a new instance of Slide.
3
4
5
|
# File 'lib/tkn2/slide.rb', line 3
def initialize(*args)
@args = args
end
|
Instance Method Details
#block ⇒ Object
7
8
9
|
# File 'lib/tkn2/slide.rb', line 7
def block
ContentBlock.new(content)
end
|
#content ⇒ Object
11
12
13
|
# File 'lib/tkn2/slide.rb', line 11
def content
Utils.strip_heredoc(raw_content)
end
|
#raw_content ⇒ Object
15
16
17
|
# File 'lib/tkn2/slide.rb', line 15
def raw_content
@args.first
end
|