Class: JekyllSupport::Header
- Inherits:
-
Object
- Object
- JekyllSupport::Header
- Defined in:
- lib/outline_tag.rb
Overview
Interleaves with docs Duck type compatible with Jekyll doc
Instance Attribute Summary collapse
-
#order ⇒ Object
Returns the value of attribute order.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(yaml) ⇒ Header
constructor
A new instance of Header.
- #to_s ⇒ Object
Constructor Details
#initialize(yaml) ⇒ Header
Returns a new instance of Header.
45 46 47 48 49 |
# File 'lib/outline_tag.rb', line 45 def initialize(yaml) @order = yaml[0] @published = true @title = yaml[1] end |
Instance Attribute Details
#order ⇒ Object
Returns the value of attribute order.
43 44 45 |
# File 'lib/outline_tag.rb', line 43 def order @order end |
#title ⇒ Object
Returns the value of attribute title.
43 44 45 |
# File 'lib/outline_tag.rb', line 43 def title @title end |
Instance Method Details
#to_s ⇒ Object
51 52 53 |
# File 'lib/outline_tag.rb', line 51 def to_s " <h3 class='post_title clear' id=\"title_#{@order}\">#{@title}</h3>" end |