Class: AnnotateRb::ModelAnnotator::Components::Header
- Defined in:
- lib/annotate_rb/model_annotator/components.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(header) ⇒ Header
constructor
A new instance of Header.
- #to_default ⇒ Object
- #to_markdown ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(header) ⇒ Header
Returns a new instance of Header.
49 50 51 |
# File 'lib/annotate_rb/model_annotator/components.rb', line 49 def initialize(header) @header = header end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
47 48 49 |
# File 'lib/annotate_rb/model_annotator/components.rb', line 47 def header @header end |
Instance Method Details
#to_default ⇒ Object
53 54 55 |
# File 'lib/annotate_rb/model_annotator/components.rb', line 53 def to_default "# #{header}" end |
#to_markdown ⇒ Object
57 58 59 |
# File 'lib/annotate_rb/model_annotator/components.rb', line 57 def to_markdown "# ### #{header}" end |