229 230 231 232 233 234 235 236
# File 'lib/user_input.rb', line 229 def from_user_input(value) if (value.kind_of?(Class) && value <= self) return value elsif (value.kind_of?(self)) return value end return nil end