class Presentify::Slide
Constants
- CODE_RE
- HEAD_RE
Attributes
code[R]
head[R]
Public Class Methods
new(content)
click to toggle source
# File lib/presentify/slide.rb, line 5 def initialize(content) @head, @code = parse(content) end
Private Instance Methods
parse(content)
click to toggle source
# File lib/presentify/slide.rb, line 14 def parse(content) [HEAD_RE, CODE_RE].map do |re| content.scan(re)[0][0].strip end end