What about:
```
def to_bool(string)
 string == 'true'
end