lib/parade/section.rb in parade-0.10.1 vs lib/parade/section.rb in parade-0.10.2
- old
+ new
@@ -42,9 +42,18 @@
# @return [Section] the parent section of this section. nil if this is a
# root section.
attr_accessor :section
+ # Set the additional css classes that will be applied to all the slides
+ # within the section.
+ attr_writer :css_classes
+
+ # @return [Array<String>] returns an array of css classes names
+ def css_classes
+ @css_classes || []
+ end
+
#
# Append sections to this section.
#
# @param [Section,Array<Section>] content this any section that you want to
# add to this section.
\ No newline at end of file