lib/elucidate.rb in elucidate-1.0.0 vs lib/elucidate.rb in elucidate-1.1.0
- old
+ new
@@ -12,6 +12,14 @@
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
\ No newline at end of file