Class: AnnotateRb::ModelAnnotator::Annotation::SchemaHeader::TableName
- Inherits:
-
Components::Base
- Object
- Components::Base
- AnnotateRb::ModelAnnotator::Annotation::SchemaHeader::TableName
- Defined in:
- lib/annotate_rb/model_annotator/annotation/schema_header.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ TableName
constructor
A new instance of TableName.
- #to_default ⇒ Object
- #to_markdown ⇒ Object
Methods inherited from Components::Base
Constructor Details
#initialize(name) ⇒ TableName
Returns a new instance of TableName.
10 11 12 |
# File 'lib/annotate_rb/model_annotator/annotation/schema_header.rb', line 10 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/annotate_rb/model_annotator/annotation/schema_header.rb', line 8 def name @name end |
Instance Method Details
#to_default ⇒ Object
14 15 16 |
# File 'lib/annotate_rb/model_annotator/annotation/schema_header.rb', line 14 def to_default "# Table name: #{name}" end |
#to_markdown ⇒ Object
18 19 20 |
# File 'lib/annotate_rb/model_annotator/annotation/schema_header.rb', line 18 def to_markdown "# Table name: `#{name}`" end |