-
Notifications
You must be signed in to change notification settings - Fork 582
Unbreak rake strings:generate:reference
#1239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
dd36542
1c943f7
1c5f7dc
3fd355d
99a684d
a78b198
b82c762
863b42f
af575d0
75eb48f
c6287f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,11 @@ | |
module Puppet::Parser::Functions | ||
newfunction(:pick, type: :rvalue, doc: <<-EOS | ||
@summary | ||
This function is similar to a coalesce function in SQL in that it will return | ||
This function will return | ||
the first value in a list of values that is not undefined or an empty string. | ||
Comment on lines
+9
to
10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps even shorten it to "Return the first ..."? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to use the same phrasing as used in the other functions (they start with "This function"). It is not very consistent so maybe somebody will step-in to improve phrasing and consistency. As a non-native English speaker, I do not feel confident for such a task 😨 |
||
|
||
This function is similar to a coalesce function in SQL. | ||
|
||
@return | ||
the first value in a list of values that is not undefined or an empty string. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# A strict absolutepath type | ||
# @summary A strict absolutepath type | ||
type Stdlib::Absolutepath = Variant[Stdlib::Windowspath, Stdlib::Unixpath] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Type to match base32 String | ||
# @summary Type to match base32 String | ||
type Stdlib::Base32 = Pattern[/\A[a-z2-7]+={,6}\z/, /\A[A-Z2-7]+={,6}\z/] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Type to match base64 String | ||
# @summary Type to match base64 String | ||
type Stdlib::Base64 = Pattern[/\A[a-zA-Z0-9\/\+]+={,2}\z/] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Emulate the is_array and validate_array functions | ||
# @summary Emulate the is_array and validate_array functions | ||
type Stdlib::Compat::Array = Array[Any] |
Uh oh!
There was an error while loading. Please reload this page.