Class: Helper::ToBool
- Inherits:
-
Object
- Object
- Helper::ToBool
- Defined in:
- lib/helper/to_bool.rb
Class Method Summary collapse
Class Method Details
.execute(string) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/helper/to_bool.rb', line 3 def self.execute(string) case string when "true" true when "false" false end end |