Class: VivlioStarter::CLI::PreProcessCommands::CrossReferenceProcessor::Label
- Inherits:
-
Struct
- Object
- Struct
- VivlioStarter::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
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def auto @auto end |
#chapter ⇒ Object
Returns the value of attribute chapter
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def chapter @chapter end |
#id ⇒ Object
Returns the value of attribute id
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def id @id end |
#line ⇒ Object
Returns the value of attribute line
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def line @line end |
#number ⇒ Object
Returns the value of attribute number
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def number @number end |
#source_file ⇒ Object
Returns the value of attribute source_file
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def source_file @source_file end |
#title ⇒ Object
Returns the value of attribute title
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def title @title end |
#type ⇒ Object
Returns the value of attribute type
59 60 61 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 59 def type @type end |
Instance Method Details
#display_name ⇒ Object
60 61 62 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 60 def display_name LABEL_TYPE_NAMES.fetch(type, '要素') end |
#full_number ⇒ Object
64 65 66 |
# File 'lib/vivlio_starter/cli/pre_process/cross_reference_processor.rb', line 64 def full_number "#{display_name} #{number}" end |