Class: Tkn2::Slide

Inherits:
Object
  • Object
show all
Defined in:
lib/tkn2/slide.rb

Direct Known Subclasses

Center, Code

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

#blockObject



7
8
9
# File 'lib/tkn2/slide.rb', line 7

def block
  ContentBlock.new(content)
end

#contentObject



11
12
13
# File 'lib/tkn2/slide.rb', line 11

def content
  Utils.strip_heredoc(raw_content)
end

#raw_contentObject



15
16
17
# File 'lib/tkn2/slide.rb', line 15

def raw_content
  @args.first
end