Class: Kitchen::Selectors::Base
Overview
Base class for different selector configurations
Direct Known Subclasses
Instance Attribute Summary collapse
-
#chapter ⇒ String
Selector for a chapter.
-
#composite_chapter ⇒ String
Selector for a composite chapter.
-
#composite_page ⇒ String
Selector for a composite page.
-
#example ⇒ String
Selector for an example.
-
#exercise ⇒ String
Selector for an exercise.
-
#figure ⇒ String
Selector for a figure.
-
#injected_exercise ⇒ String
Selector for an injected exercise.
-
#injected_question ⇒ String
Selector for an injected question.
-
#metadata ⇒ String
Selector for a metadata.
-
#note ⇒ String
Selector for a note.
-
#page ⇒ String
Selector for a page.
-
#page_summary ⇒ String
Selector for the summary in a page.
-
#reference ⇒ String
Selector for a reference.
-
#section ⇒ String
Selector for a section.
-
#solution ⇒ String
Selector for an unit.
-
#table ⇒ String
Selector for a table.
-
#term ⇒ String
Selector for a term.
-
#title_in_introduction_page ⇒ String
Selector for the title in an introduction page.
-
#title_in_page ⇒ String
Selector for the title in a page.
-
#unit ⇒ String
Selector for an unit.
Instance Method Summary collapse
-
#override(hash = {}) ⇒ Base
Override specific selectors.
Instance Attribute Details
#chapter ⇒ String
Selector for a chapter
25 26 27 |
# File 'lib/kitchen/selectors/base.rb', line 25 def chapter @chapter end |
#composite_chapter ⇒ String
Selector for a composite chapter
49 50 51 |
# File 'lib/kitchen/selectors/base.rb', line 49 def composite_chapter @composite_chapter end |
#composite_page ⇒ String
Selector for a composite page
46 47 48 |
# File 'lib/kitchen/selectors/base.rb', line 46 def composite_page @composite_page end |
#example ⇒ String
Selector for an example
52 53 54 |
# File 'lib/kitchen/selectors/base.rb', line 52 def example @example end |
#exercise ⇒ String
Selector for an exercise
55 56 57 |
# File 'lib/kitchen/selectors/base.rb', line 55 def exercise @exercise end |
#figure ⇒ String
Selector for a figure
40 41 42 |
# File 'lib/kitchen/selectors/base.rb', line 40 def figure @figure end |
#injected_exercise ⇒ String
Selector for an injected exercise
70 71 72 |
# File 'lib/kitchen/selectors/base.rb', line 70 def injected_exercise @injected_exercise end |
#injected_question ⇒ String
Selector for an injected question
64 65 66 |
# File 'lib/kitchen/selectors/base.rb', line 64 def injected_question @injected_question end |
#metadata ⇒ String
Selector for a metadata
43 44 45 |
# File 'lib/kitchen/selectors/base.rb', line 43 def @metadata end |
#note ⇒ String
Selector for a note
31 32 33 |
# File 'lib/kitchen/selectors/base.rb', line 31 def note @note end |
#page ⇒ String
Selector for a page
28 29 30 |
# File 'lib/kitchen/selectors/base.rb', line 28 def page @page end |
#page_summary ⇒ String
Selector for the summary in a page
19 20 21 |
# File 'lib/kitchen/selectors/base.rb', line 19 def page_summary @page_summary end |
#reference ⇒ String
Selector for a reference
22 23 24 |
# File 'lib/kitchen/selectors/base.rb', line 22 def reference @reference end |
#section ⇒ String
Selector for a section
67 68 69 |
# File 'lib/kitchen/selectors/base.rb', line 67 def section @section end |
#solution ⇒ String
Selector for an unit
61 62 63 |
# File 'lib/kitchen/selectors/base.rb', line 61 def solution @solution end |
#table ⇒ String
Selector for a table
37 38 39 |
# File 'lib/kitchen/selectors/base.rb', line 37 def table @table end |
#term ⇒ String
Selector for a term
34 35 36 |
# File 'lib/kitchen/selectors/base.rb', line 34 def term @term end |
#title_in_introduction_page ⇒ String
Selector for the title in an introduction page
16 17 18 |
# File 'lib/kitchen/selectors/base.rb', line 16 def title_in_introduction_page @title_in_introduction_page end |
#title_in_page ⇒ String
Selector for the title in a page
13 14 15 |
# File 'lib/kitchen/selectors/base.rb', line 13 def title_in_page @title_in_page end |
#unit ⇒ String
Selector for an unit
58 59 60 |
# File 'lib/kitchen/selectors/base.rb', line 58 def unit @unit end |
Instance Method Details
#override(hash = {}) ⇒ Base
Override specific selectors
77 78 79 80 81 82 |
# File 'lib/kitchen/selectors/base.rb', line 77 def override(hash={}) hash.each do |selector, value| send("#{selector}=", value) end self end |