Implement Task#to_s

This commit is contained in:
Thibault Jouan
2014-05-21 13:13:59 +00:00
parent 7cffa34442
commit 2b86bbf112
2 changed files with 10 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ module Producer
@condition = condition
end
def to_s
name.to_s
end
def condition_met?
!!@condition
end