Class: Faq::QAPair

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

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ QAPair

Returns a new instance of QAPair.



38
39
40
41
# File 'app/models/faq.rb', line 38

def initialize args
  @q = args[:q]
  @a = args[:a]
end

Instance Method Details

#a_htmlObject



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

def a_html; Faq.markdown @a end

#q_htmlObject



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

def q_html; Faq.markdown @q end

#templateObject



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

def template; 'faq/qapair' end