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

Default file handler #3

Merged
merged 5 commits into from
Dec 28, 2015
Merged

Default file handler #3

merged 5 commits into from
Dec 28, 2015

Conversation

jreidinger
Copy link
Contributor

No description provided.

@@ -1,4 +1,10 @@
-------------------------------------------------------------------
Mon Dec 21 13:29:54 UTC 2015 - jreidinger@suse.com

- allow specify default file handler all models
Copy link
Contributor

Choose a reason for hiding this comment

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

allow specifying a default file handler for all models

@ancorgs
Copy link

ancorgs commented Dec 21, 2015

Just a NP (and English correction by Martin). In sort, LGTM.

def initialize(parser, file_path, file_handler: File)
@file_handler = file_handler
# `write(string, string)`. For example see {CFA::MemoryFile}. When nil
# passed it use object from default_file_handler.
Copy link
Contributor

Choose a reason for hiding this comment

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

A Yardoc link to the method + grammar fixes:

    # @param file_handler [.read, .write] an object able to read/write a string.
    #   It has to provide methods `string read(string)` and
    #   `write(string, string)`. For an example see {CFA::MemoryFile}.
    #   If unspecified or `nil`, {.default_file_handler} is asked.

jreidinger added a commit that referenced this pull request Dec 28, 2015
@jreidinger jreidinger merged commit 27cced5 into master Dec 28, 2015
@jreidinger jreidinger deleted the default_file_handler branch December 28, 2015 08:45
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.

None yet

3 participants