Sha256: a0dc2e9aadc57d956863e4cb9ef894e4eec9d2a14a941d726e167940003e1470
Contents?: true
Size: 299 Bytes
Versions: 1
Compression:
Stored size: 299 Bytes
Contents
class TrueClass def to_english "Yes" end end class FalseClass def to_english "No" end end class NilClass def to_english "Not Set" end end class String def english_to_code test = downcase return nil if test.empty? || test == 'not set' test == 'yes' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elucidate-1.1.0 | lib/elucidate.rb |