Skip to content

Commit

Permalink
Make ZplYesNo internal
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattking committed Jul 28, 2024
1 parent cf57069 commit f845483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ fun ZplBuilder.field(x: Int, y: Int, font: ZplFont, fontHeight: Int, fontWidth:
addField(x, y, font, fontHeight, fontWidth, data)
}

fun Boolean.toZplYesNo(): ZplYesNo = when(this) {
internal fun Boolean.toZplYesNo(): ZplYesNo = when(this) {
true -> ZplYesNo.YES
else -> ZplYesNo.NO
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package info.mking.k2zpl.command.options

enum class ZplYesNo(val value: String) {
internal enum class ZplYesNo(val value: String) {
YES("Y"),
NO("N");

Expand Down

0 comments on commit f845483

Please sign in to comment.