class SlideHero::Point

Constants

SUPPORTED_ANIMATIONS

Attributes

text[R]

Public Class Methods

new(text, animation: nil) click to toggle source
# File lib/slide_hero/point.rb, line 8
def initialize(text, animation: nil)
  @text = text
  @animation = animation
end

Private Instance Methods

animation() click to toggle source
# File lib/slide_hero/point.rb, line 14
def animation
  if @animation
    animation_markup = ' class="fragment '
    if SUPPORTED_ANIMATIONS.include? @animation
      animation_markup << @animation
    end
    animation_markup + "\""
  end
end