File tree 6 files changed +7
-7
lines changed
6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ methods are defined dynamically and not associated with any code.
92
92
#### New ` @!parse ` directive to parse Ruby code
93
93
94
94
A new {tag:!parse} directive was added that allows a developer to have
95
- YARD parse code that might not necessarily be parseable in its original
95
+ YARD parse code that might not necessarily be parsable in its original
96
96
form. This is useful when using ` instance_eval ` and other dynamic
97
97
meta-programming techniques to define methods or perform functionality.
98
98
For instance, a common case of the "self.included" callback in module
Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ def type
58
58
end
59
59
60
60
# Provides a plain English summary of the type specification, or nil
61
- # if no types are provided or parseable .
61
+ # if no types are provided or parsable .
62
62
#
63
63
# @return [String] a plain English description of the associated types
64
- # @return [nil] if no types are provided or not parseable
64
+ # @return [nil] if no types are provided or not parsable
65
65
def explain_types
66
66
return nil if !types || types . empty?
67
67
TypesExplainer . explain ( *types )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def self.explain(*types)
13
13
end
14
14
15
15
# (see explain)
16
- # @raise [SyntaxError] if the types are not parseable
16
+ # @raise [SyntaxError] if the types are not parsable
17
17
def self . explain! ( *types )
18
18
Parser . parse ( types . join ( ", " ) ) . join ( "; " )
19
19
end
Original file line number Diff line number Diff line change @@ -7124,7 +7124,7 @@ msgstr "#### Rubyのコードを解析する為の新しい `@!parse` ディレ
7124
7124
#: ../docs/WhatsNew.md:87
7125
7125
msgid ""
7126
7126
"A new {tag:!parse} directive was added that allows a developer to have\n"
7127
- "YARD parse code that might not necessarily be parseable in its original\n"
7127
+ "YARD parse code that might not necessarily be parsable in its original\n"
7128
7128
"form. This is useful when using `instance_eval` and other dynamic\n"
7129
7129
"meta-programming techniques to define methods or perform functionality.\n"
7130
7130
"For instance, a common case of the \"self.included\" callback in module\n"
Original file line number Diff line number Diff line change 210
210
eof
211
211
end
212
212
213
- it "warns on unparseable DSL statements" do
213
+ it "warns on unparsable DSL statements" do
214
214
undoc_error "private(*foo(bar))"
215
215
end if HAVE_RIPPER
216
216
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def tag(docstring)
41
41
expect ( tag ( "@return" ) . explain_types ) . to eq nil
42
42
end
43
43
44
- it "returns nil if types are not parseable " do
44
+ it "returns nil if types are not parsable " do
45
45
expect ( tag ( "@return [$]" ) . explain_types ) . to eq nil
46
46
end
47
47
end
You can’t perform that action at this time.
0 commit comments