Class: JekyllSupport::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/outline_tag.rb

Overview

Interleaves with docs Duck type compatible with Jekyll doc

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#orderObject

Returns the value of attribute order.



43
44
45
# File 'lib/outline_tag.rb', line 43

def order
  @order
end

#titleObject

Returns the value of attribute title.



43
44
45
# File 'lib/outline_tag.rb', line 43

def title
  @title
end

Instance Method Details

#to_sObject



51
52
53
# File 'lib/outline_tag.rb', line 51

def to_s
  "  <h3 class='post_title clear' id=\"title_#{@order}\">#{@title}</h3>"
end