Class: GithubToCanvasQuiz::Parser::Markdown::Answer::MultipleChoice
- Defined in:
- lib/github_to_canvas_quiz/parser/markdown/answer/multiple_choice.rb
Instance Attribute Summary
Attributes inherited from Base
#answer_nodes, #comment, #title
Instance Method Summary collapse
Methods inherited from Base
Methods included from Helpers::NodeParser
#parse_text_from_node, #parse_text_from_nodes
Constructor Details
This class inherits a constructor from GithubToCanvasQuiz::Parser::Markdown::Answer::Base
Instance Method Details
#parse ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/github_to_canvas_quiz/parser/markdown/answer/multiple_choice.rb', line 8 def parse Model::Answer::MultipleChoice.new( title: title, text: answer_nodes.to_html.strip, comments: comment ) end |