Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/restest.rb
Overview
Add a to_bool() method to String
Instance Method Summary collapse
Instance Method Details
#to_bool ⇒ Object
28 29 30 31 |
# File 'lib/restest.rb', line 28 def to_bool return true if self == "true" false end |