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

Refactoring about #97 #108

Merged
merged 2 commits into from
Aug 7, 2022
Merged

Refactoring about #97 #108

merged 2 commits into from
Aug 7, 2022

Conversation

doyaaaaaken
Copy link
Collaborator

refs #97

@@ -51,7 +51,7 @@ actual class CsvWriter actual constructor(
writer.use { it.write() }
}

fun writeString(write: ICsvFileWriter.() -> Unit): String {
internal fun writeAsString(write: ICsvFileWriter.() -> Unit): String {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hide this method for kotlin-csv users to put the internal modifier, because there didn't seem to be many use cases for using this method.

@@ -144,7 +144,7 @@ actual class CsvWriter actual constructor(
/**
* write all rows to string
*/
fun writeAll(rows: List<List<Any?>>): String {
return writeString { writeRows(rows) }
fun writeAllAsString(rows: List<List<Any?>>): String {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Rename this method into writeAllAsString because there are many other writeAll methods and their behavior is slightly different from the behavior of this method.

@doyaaaaaken doyaaaaaken merged commit 70e8ee7 into master Aug 7, 2022
@doyaaaaaken doyaaaaaken deleted the issue-97 branch August 7, 2022 08:24
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.

1 participant