Module: RD::LabeledElement

Included in:
DescListItem::Term, Headline, MethodListItem::Term
Defined in:
lib/rd/labeled-element.rb

Overview

interface

Instance Method Summary collapse

Instance Method Details

#calculate_labelObject



10
11
12
# File 'lib/rd/labeled-element.rb', line 10

def calculate_label
  raise "[BUG] must override."
end

#to_labelObject Also known as: label



5
6
7
# File 'lib/rd/labeled-element.rb', line 5

def to_label
  @label ||= calculate_label
end