Class: Faq::Subtitle

Inherits:
Object
  • Object
show all
Defined in:
app/models/faq.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Subtitle

Returns a new instance of Subtitle.



26
27
28
# File 'app/models/faq.rb', line 26

def initialize str
  @str = str
end

Instance Attribute Details

#strObject

Returns the value of attribute str.



24
25
26
# File 'app/models/faq.rb', line 24

def str
  @str
end

Instance Method Details

#templateObject



30
# File 'app/models/faq.rb', line 30

def template; 'faq/subtitle' end

#to_htmlObject



31
# File 'app/models/faq.rb', line 31

def to_html; Faq.markdown @str end