Class: SlideEmUp::Presentation::Slide

Inherits:
Struct
  • Object
show all
Defined in:
lib/slide-em-up/presentation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#classesObject

Returns the value of attribute classes

Returns:

  • (Object)

    the current value of classes



11
12
13
# File 'lib/slide-em-up/presentation.rb', line 11

def classes
  @classes
end

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



11
12
13
# File 'lib/slide-em-up/presentation.rb', line 11

def html
  @html
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



11
12
13
# File 'lib/slide-em-up/presentation.rb', line 11

def number
  @number
end

Instance Method Details

#extract_titleObject



12
13
14
15
16
# File 'lib/slide-em-up/presentation.rb', line 12

def extract_title
  return @title if @title
  html.sub!(/<h(\d)>(.*)<\/h\1>/) { @title = $2; "" }
  @title
end