Class: Class

Inherits:
Object show all
Defined in:
lib/user_input.rb

Instance Method Summary collapse

Instance Method Details

#from_user_input(value) ⇒ Object



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