class Kitchen::Directions::BakeChapterGlossary::V1::Definition
Attributes
element[R]
sortable[R]
Public Class Methods
new(element)
click to toggle source
# File lib/kitchen/directions/bake_chapter_glossary/v1.rb, line 8 def initialize(element) term = Kitchen::I18nString.new(element.first('dt').text.downcase) description = Kitchen::I18nString.new(element.first('dd').text.downcase) @sortable = [term, description] @element = element end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/kitchen/directions/bake_chapter_glossary/v1.rb, line 15 def <=>(other) sortable <=> other.sortable end