Class: Symbol
Class Method Summary collapse
Instance Method Summary collapse
-
#from_user_input(value) ⇒ Object
instance form does a straight comparison of value.to_sym with self.
Class Method Details
Instance Method Details
#from_user_input(value) ⇒ Object
instance form does a straight comparison of value.to_sym with self.
206 207 208 209 210 211 212 |
# File 'lib/user_input.rb', line 206 def from_user_input(value) if (self.to_s == value.to_s) return self else return nil end end |