Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/restest.rb

Overview


Add a to_bool() method to String

Instance Method Summary collapse

Instance Method Details

#to_boolObject



28
29
30
31
# File 'lib/restest.rb', line 28

def to_bool
  return true if self == "true"
  false
end