-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projections.json
40 lines (40 loc) · 1 KB
/
.projections.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"lib/attribool/validators/*_validator.rb": {
"command": "validator",
"related": "lib/attribool/validator_service.rb",
"alternate": "test/attribool/validators/{}_test.rb",
"template": [
"# frozen_string_literal: true",
"",
"module Attribool::Validators",
" ##",
" # Ensures that {blank} is validated.",
" class {capitalize|camelcase}Validator",
" ##",
" # Construct the validator.",
" #",
" # @param [Todo] todo",
" def initialize(todo)",
" @todo = todo",
" end",
"",
" ##",
" # Todo?",
" #",
" # @return [Boolean]",
" def valid?",
" # TODO",
" end",
"",
" ##",
" # The exception to raise if validations fail.",
" #",
" # @return [TodoError] the exception with message",
" def error",
" TodoError.new(\"todo\")",
" end",
" end",
"end"
]
}
}