verbalize 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/verbalize/action.rb +2 -1
- data/lib/verbalize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbb81a57e922f9eb1725daf38886898e1ec0e0d8
|
4
|
+
data.tar.gz: 1ce4904ec6243de8e40e269b7e773ebd516d0d9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9acacd50f16370208e8adde4c37b2822051ec77fd0fa9979e2fcddac898053ecdb3413a6db3d87ec821bceed104c453881d7ced95dfef726bda5eb6c2f24b6
|
7
|
+
data.tar.gz: a89f9934e93a7dbbb1124ff443cc9551ae2e3af5fb3346ffb0b1445787c77095b3dc6b6c2e9012f1ad84770207d7b9b489c475249036c8d9a4383884eb757c3c
|
data/lib/verbalize/action.rb
CHANGED
@@ -18,9 +18,10 @@ module Verbalize
|
|
18
18
|
module ClassMethods
|
19
19
|
def input(*required_keywords, optional: [])
|
20
20
|
@required_inputs = required_keywords
|
21
|
+
optional = Array(optional)
|
21
22
|
@optional_inputs = optional
|
22
23
|
|
23
|
-
class_eval Build.call(required_keywords,
|
24
|
+
class_eval Build.call(required_keywords, optional)
|
24
25
|
end
|
25
26
|
|
26
27
|
def required_inputs
|
data/lib/verbalize/version.rb
CHANGED