class Kitchen::Selectors::Base

Base class for different selector configurations

Attributes

chapter[RW]

Selector for a chapter @return [String]

composite_chapter[RW]

Selector for a composite chapter @return [String]

composite_page[RW]

Selector for a composite page @return [String]

example[RW]

Selector for an example @return [String]

exercise[RW]

Selector for an exercise @return [String]

figure[RW]

Selector for a figure @return [String]

injected_question[RW]

Selector for an injected question @return [String]

metadata[RW]

Selector for a metadata @return [String]

note[RW]

Selector for a note @return [String]

page[RW]

Selector for a page @return [String]

page_summary[RW]

Selector for the summary in a page @return [String]

reference[RW]

Selector for a reference @return [String]

solution[RW]

Selector for an unit @return [String]

table[RW]

Selector for a table @return [String]

term[RW]

Selector for a term @return [String]

title_in_introduction_page[RW]

Selector for the title in an introduction page @return [String]

title_in_page[RW]

Selector for the title in a page @return [String]

unit[RW]

Selector for an unit @return [String]

Public Instance Methods

override(hash={}) click to toggle source

Override specific selectors

@param hash [Hash] a hash of selectors to selector values, e.g. {title_in_page: '.title'} @return [Base] this object

# File lib/kitchen/selectors/base.rb, line 71
def override(hash={})
  hash.each do |selector, value|
    send("#{selector}=", value)
  end
  self
end