Skip to content

Commit

Permalink
Adds addSuccessCallback() method. Fixes issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
wajahatkarim3 committed Aug 5, 2018
1 parent 4bbfb1d commit 603cec7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ class Validator(val text: String)
return this
}

fun addSuccessCallback(callback: () -> Unit) : Validator
{
successCallback = callback
return this
}

// Rules
fun nonEmpty() : Validator
{
Expand Down

0 comments on commit 603cec7

Please sign in to comment.