Module: AnkiRecord::NoteFieldAttributes
- Included in:
- NoteField
- Defined in:
- lib/anki_record/note_field/note_field_attributes.rb
Overview
Module with NoteField class’s attribute readers, writers, and accessors.
Instance Attribute Summary collapse
-
#description ⇒ Object
The field’s description.
-
#font_size ⇒ Object
The field’s font size used when editing.
-
#font_style ⇒ Object
The field’s font style used when editing.
-
#name ⇒ Object
The field’s name.
-
#note_type ⇒ Object
readonly
The field’s note type.
-
#ordinal_number ⇒ Object
readonly
0 for the first field of the note type, 1 for the second, etc.
-
#right_to_left ⇒ Object
A boolean that indicates if the field is right to left.
-
#sticky ⇒ Object
A boolean that indicates if the field is sticky.
Instance Attribute Details
#description ⇒ Object
The field’s description
33 34 35 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 33 def description @description end |
#font_size ⇒ Object
The field’s font size used when editing
29 30 31 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 29 def font_size @font_size end |
#font_style ⇒ Object
The field’s font style used when editing
25 26 27 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 25 def font_style @font_style end |
#name ⇒ Object
The field’s name
13 14 15 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 13 def name @name end |
#note_type ⇒ Object (readonly)
The field’s note type
9 10 11 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 9 def note_type @note_type end |
#ordinal_number ⇒ Object (readonly)
0 for the first field of the note type, 1 for the second, etc
37 38 39 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 37 def ordinal_number @ordinal_number end |
#right_to_left ⇒ Object
A boolean that indicates if the field is right to left
21 22 23 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 21 def right_to_left @right_to_left end |
#sticky ⇒ Object
A boolean that indicates if the field is sticky
17 18 19 |
# File 'lib/anki_record/note_field/note_field_attributes.rb', line 17 def sticky @sticky end |