pnote_client 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pnote_client/documents/pnote/problem.rb +8 -6
- data/lib/pnote_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56175a9e244dbff020f95ccb9a529fd775b66741ea82d1995b21bc23e87350e6
|
4
|
+
data.tar.gz: 2f4a7a25fbd08fb809144365a2742f4e361fa89588658860c3c3901addf98e49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3eec00f3f55bf208e7c0cc345248d4e3855c30274a304b95207fd9e2a128f55a36eb0054a1fe0a43b2bb2feaf8417afffa3263408a722e387c8e04aa507e29
|
7
|
+
data.tar.gz: ee794b2e3a306fc9e773ff6f1e274e97f409267405a647707c5a3767219749159177f2e23ecc73c34eb7c8f3e5a75062af8c906c7503e591ef8547e90f9b29aa
|
@@ -11,11 +11,13 @@ module PnoteClient
|
|
11
11
|
|
12
12
|
def initialize(
|
13
13
|
question: nil, answer: nil, explaination: nil,
|
14
|
-
choices: nil,
|
14
|
+
choices: nil, teacher_comments: [], tip: nil
|
15
15
|
)
|
16
16
|
|
17
|
-
@question, @answer, @explaination, @choices, @
|
18
|
-
question, answer, explaination, choices,
|
17
|
+
@question, @answer, @explaination, @choices, @teacher_comments, @tip =
|
18
|
+
question, answer, explaination, choices, teacher_comments, tip
|
19
|
+
@choice = nil
|
20
|
+
@answer_line = nil
|
19
21
|
end
|
20
22
|
|
21
23
|
def add_question_line(new_line)
|
@@ -23,7 +25,7 @@ module PnoteClient
|
|
23
25
|
end
|
24
26
|
|
25
27
|
def add_answer_line(new_line)
|
26
|
-
@
|
28
|
+
@answer_line = add_line(@answer_line, new_line)
|
27
29
|
end
|
28
30
|
|
29
31
|
def add_explaination_line(new_line)
|
@@ -35,8 +37,8 @@ module PnoteClient
|
|
35
37
|
end
|
36
38
|
|
37
39
|
def answer
|
38
|
-
return
|
39
|
-
return @
|
40
|
+
return @answer if @answer
|
41
|
+
return @answer_line.match(/\s*\[정답\]\s*(.*)/).to_a[1]&.strip
|
40
42
|
end
|
41
43
|
|
42
44
|
def choices
|
data/lib/pnote_client/version.rb
CHANGED