Class: Kitchen::Directions::BakeChapterReferences::V3::Reference
- Defined in:
- lib/kitchen/directions/bake_chapter_references/v3.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(element) ⇒ Reference
constructor
A new instance of Reference.
Constructor Details
#initialize(element) ⇒ Reference
Returns a new instance of Reference.
8 9 10 11 12 |
# File 'lib/kitchen/directions/bake_chapter_references/v3.rb', line 8 def initialize(element) reference_item = Kitchen::I18nString.new(element.text.downcase) @sortable = [reference_item] @element = element end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
6 7 8 |
# File 'lib/kitchen/directions/bake_chapter_references/v3.rb', line 6 def element @element end |
Instance Method Details
#<=>(other) ⇒ Object
14 15 16 |
# File 'lib/kitchen/directions/bake_chapter_references/v3.rb', line 14 def <=>(other) sortable <=> other.sortable end |