module Kernel
Public Instance Methods
Boolean(value)
click to toggle source
# File lib/tensorflow/extensions/boolean.rb, line 4 def Boolean(value) # Rails converts true/false to 't' and 'f' in this case # because it does not have data dictionary information for # these fields and doesn't seem to be able to figure it # out from the query results. if not value false elsif value.to_s.match(/^(t|true|1|yes|y)$/i) true else false end end