Class: Kitchen::Selectors::Standard1

Inherits:
Base show all
Defined in:
lib/kitchen/selectors/standard_1.rb

Overview

A specific set of selectors

Instance Attribute Summary

Attributes inherited from Base

#chapter, #composite_chapter, #composite_page, #example, #exercise, #figure, #injected_exercise, #injected_question, #metadata, #note, #page, #page_summary, #reference, #section, #solution, #table, #term, #title_in_introduction_page, #title_in_page, #unit

Instance Method Summary collapse

Methods inherited from Base

#override

Constructor Details

#initializeStandard1

Create a new instance



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/kitchen/selectors/standard_1.rb', line 11

def initialize
  super
  self.title_in_page              = "./*[@data-type = 'document-title']"
  self.title_in_introduction_page = "./*[@data-type = 'document-title']"
  self.page_summary               = 'section.summary'
  self.reference                  = '.reference'
  self.chapter                    = "div[data-type='chapter']"
  self.page                       = "div[data-type='page']"
  self.note                       = "div[data-type='note']"
  self.term                       = "span[data-type='term']"
  self.table                      = 'table'
  self.figure                     = 'figure'
  self.                   = "div[data-type='metadata']"
  self.composite_page             = "div[data-type='composite-page']"
  self.composite_chapter          = "div[data-type='composite-chapter']"
  self.example                    = "div[data-type='example']"
  self.exercise                   = "div[data-type='exercise']"
  self.unit                       = "div[data-type='unit']"
  self.solution                   = "div[data-type='solution'], " \
                                    "div[data-type='question-solution']"
  self.injected_question          = "div[data-type='exercise-question']"
  self.section                    = 'section'
  self.injected_exercise          = "div[data-type='injected-exercise']"
end