Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/jqueryui_widgets/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#convert_to_number ⇒ Object
2 3 4 5 |
# File 'lib/jqueryui_widgets/core_ext/string.rb', line 2 def convert_to_number return self.to_i if self.length > 0 self end |