Skip to content
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

Allow File constructor to take a block. #838

Merged
merged 1 commit into from
Jun 30, 2015
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Jun 27, 2015

Enables removing several TODOs about using tap

@@ -28,7 +28,7 @@ class File
# @param parent_or_url_or_hash [ActiveFedora::Base, String, Hash, NilClass] the parent resource or the URI of this resource
# @param path [String] the path partial relative to the resource
# @param options [Hash]
def initialize(parent_or_url_or_hash = nil, path=nil, options={})
def initialize(parent_or_url_or_hash = nil, path=nil, options={}, &block)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcoyne yard doc about the block would be nice. https://gist.github.com/chetan/1827484#blocks

Enables removing several TODOs about using `tap`
@jcoyne
Copy link
Member Author

jcoyne commented Jun 29, 2015

@Cam156 done

@carolyncole
Copy link
Contributor

👏

carolyncole added a commit that referenced this pull request Jun 30, 2015
Allow File constructor to take a block.
@carolyncole carolyncole merged commit 36d5730 into master Jun 30, 2015
@carolyncole carolyncole deleted the file_takes_block branch June 30, 2015 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants