Class: SectionDef

Inherits:
Object
  • Object
show all
Defined in:
lib/coursegen/course/data/section_def.rb

Overview

Sidebar configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, selector, options = {}) ⇒ SectionDef

Returns a new instance of SectionDef.



5
6
7
8
9
# File 'lib/coursegen/course/data/section_def.rb', line 5

def initialize(title, selector, options = {})
  @title = title
  @selector = selector
  @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/coursegen/course/data/section_def.rb', line 4

def options
  @options
end

#selectorObject

Returns the value of attribute selector.



4
5
6
# File 'lib/coursegen/course/data/section_def.rb', line 4

def selector
  @selector
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/coursegen/course/data/section_def.rb', line 4

def title
  @title
end