Module: AnkiRecord::CardTemplateAttributes
- Included in:
- CardTemplate
- Defined in:
- lib/anki_record/card_template/card_template_attributes.rb
Overview
Module with the CardTemplate class’s attribute readers, writers, and accessors.
Instance Attribute Summary collapse
-
#answer_format ⇒ Object
The card template’s answer format.
-
#browser_font_size ⇒ Object
The card template’s font size used in the browser.
-
#browser_font_style ⇒ Object
The card template’s font style in the browser.
-
#name ⇒ Object
The card template’s name.
-
#note_type ⇒ Object
readonly
The card template’s note type object.
-
#ordinal_number ⇒ Object
readonly
0 for the first card template of the note type, 1 for the second, etc.
-
#question_format ⇒ Object
The card template’s question format.
Instance Attribute Details
#answer_format ⇒ Object
The card template’s answer format
42 43 44 |
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 42 def answer_format @answer_format end |
#browser_font_size ⇒ Object
The card template’s font size used in the browser
17 18 19 |
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 17 def browser_font_size @browser_font_size end |
#browser_font_style ⇒ Object
The card template’s font style in the browser
13 14 15 |
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 13 def browser_font_style @browser_font_style end |
#name ⇒ Object
The card template’s name
9 10 11 |
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 9 def name @name end |
#note_type ⇒ Object (readonly)
The card template’s note type object
63 64 65 |
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 63 def note_type @note_type end |
#ordinal_number ⇒ Object (readonly)
0 for the first card template of the note type, 1 for the second, etc
67 68 69 |
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 67 def ordinal_number @ordinal_number end |
#question_format ⇒ Object
The card template’s question format
21 22 23 |
# File 'lib/anki_record/card_template/card_template_attributes.rb', line 21 def question_format @question_format end |