-
Notifications
You must be signed in to change notification settings - Fork 581
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
Basename implementation #368
Conversation
|
👍 Looks good. |
|
Actually, probably needs some type checking to be future parser safe. |
|
That's it, should be good. |
|
Type checking has been added (and I did the same for the 'dirname' function -- different pull request). |
| @@ -84,6 +84,8 @@ If you want to use a standardized set of run stages for Puppet, `include stdlib` | |||
| Requires an action ('encode', 'decode') and either a plain or base64-encoded | |||
| string. *Type*: rvalue | |||
|
|
|||
| * `basename`: Returns the `basename` of a path (optionally stripping an extension). For example, `dirname('/path/to/a/file.ext')` returns 'file.ext'. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should include Type: rvalue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, maybe some more explicit examples? just to be very verbose?
|
@rfugina this looks good in general! I made two comments on your README updates, and other than that if you could squash this down to a single commit then we can merge it! 👍 |
Based on dirname code. Includes RSpec tests and docs.
|
Squashed. Also made the other changes you requested, but the commits/comments got squashed away. |
|
\o/ thanks @rfugina! |
Used dirname function as a model. Wraps Ruby's File.basename in similar fashion. Docs included. RSpec tests included, and pass. Github says "able to merge".