Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/aliyun/oss/util.rb

Overview

Monkey patch to support #to_bool

Instance Method Summary collapse

Instance Method Details

#to_boolObject



109
110
111
112
# File 'lib/aliyun/oss/util.rb', line 109

def to_bool
  return true if self =~ /^true$/i
  false
end