File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def self.list_one(object)
66
66
targetlength = 48
67
67
shortento = targetlength - 4
68
68
contentstring = object [ :docstring ] [ :text ]
69
- end_of_line = contentstring . index ( "\n " ) # "." gives closer results to old describeb, but breaks for '.k5login'
69
+ end_of_line = contentstring . index ( "\n " ) # "." gives closer results to old describeb, but breaks for '.k5login'
70
70
contentstring = contentstring [ 0 ..end_of_line ] unless end_of_line . nil?
71
71
contentstring = "#{ contentstring [ 0 ..shortento ] } ..." if contentstring . length > targetlength
72
72
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class PuppetStrings::Yard::CodeObjects::Functions < PuppetStrings::Yard::CodeObj
8
8
# @param [Symbol] type The function type to get the group for.
9
9
# @return Returns the singleton instance of the group.
10
10
def self . instance ( type )
11
- super ( "puppet_functions_#{ type } " . to_sym )
11
+ super ( : "puppet_functions_#{ type } ")
12
12
end
13
13
14
14
# Gets the display name of the group.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class PuppetStrings::Yard::CodeObjects::Providers < PuppetStrings::Yard::CodeObj
8
8
# @param [String] type The resource type name for the provider.
9
9
# @return Returns the singleton instance of the group.
10
10
def self . instance ( type )
11
- super ( "puppet_providers_#{ type } " . to_sym )
11
+ super ( : "puppet_providers_#{ type } ")
12
12
end
13
13
14
14
# Gets the display name of the group.
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def parameters
169
169
# render-time. For now, this should re-resolve on every call.
170
170
# may be able to memoize this
171
171
def providers
172
- providers = YARD ::Registry . all ( "puppet_providers_#{ name } " . to_sym )
172
+ providers = YARD ::Registry . all ( : "puppet_providers_#{ name } ")
173
173
return providers if providers . empty?
174
174
175
175
providers . first . children
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def self.github_to_yard_links(data)
35
35
# @return [Array] Returns an array of tag hashes.
36
36
def self . tags_to_hashes ( tags )
37
37
# Skip over the API tags that are public
38
- tags . select { |t | ( t . tag_name != 'api' || t . text != 'public' ) } . map do |t |
38
+ tags . select { |t | t . tag_name != 'api' || t . text != 'public' } . map do |t |
39
39
next t . to_hash if t . respond_to? ( :to_hash )
40
40
41
41
tag = { tag_name : t . tag_name }
You can’t perform that action at this time.
0 commit comments