Class: Range

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

Instance Method Summary collapse

Instance Method Details

#from_user_input(value) ⇒ Object



123
124
125
126
127
128
129
130
131
# File 'lib/user_input.rb', line 123

def from_user_input(value)
	value = self.first.class.from_user_input(value)

	if(!value || !(self === value))
		return nil
	end

	return value
end