Class: Vivlio::Starter::CLI::PreProcessCommands::CrossReferenceProcessor::Label
- Inherits:
-
Struct
- Object
- Struct
- Vivlio::Starter::CLI::PreProcessCommands::CrossReferenceProcessor::Label
- Defined in:
- lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb
Overview
ラベル定義情報を保持する構造体
Instance Attribute Summary collapse
-
#auto ⇒ Object
Returns the value of attribute auto.
-
#chapter ⇒ Object
Returns the value of attribute chapter.
-
#id ⇒ Object
Returns the value of attribute id.
-
#line ⇒ Object
Returns the value of attribute line.
-
#number ⇒ Object
Returns the value of attribute number.
-
#source_file ⇒ Object
Returns the value of attribute source_file.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#auto ⇒ Object
Returns the value of attribute auto
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def auto @auto end |
#chapter ⇒ Object
Returns the value of attribute chapter
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def chapter @chapter end |
#id ⇒ Object
Returns the value of attribute id
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def id @id end |
#line ⇒ Object
Returns the value of attribute line
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def line @line end |
#number ⇒ Object
Returns the value of attribute number
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def number @number end |
#source_file ⇒ Object
Returns the value of attribute source_file
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def source_file @source_file end |
#title ⇒ Object
Returns the value of attribute title
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def title @title end |
#type ⇒ Object
Returns the value of attribute type
66 67 68 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 66 def type @type end |
Instance Method Details
#display_name ⇒ Object
67 68 69 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 67 def display_name LABEL_TYPE_NAMES.fetch(type, '要素') end |
#full_number ⇒ Object
71 72 73 |
# File 'lib/vivlio/starter/cli/pre_process/cross_reference_processor.rb', line 71 def full_number "#{display_name} #{number}" end |