Skip to content

Commit

Permalink
#115 chore: added tostring method to rule class
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantmazonsb committed Mar 1, 2022
1 parent 13989d8 commit 9b45da3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Linguard/Core/Models/Wireguard/Rule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
public class Rule {
public string Command { get; set; }

public static implicit operator Rule(string command)
{
public static implicit operator Rule(string command) {
return new Rule {
Command = command
};
}

public override string ToString() {
return Command;
}
}

0 comments on commit 9b45da3

Please sign in to comment.