Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/utility_functions.rb
Instance Method Summary collapse
Instance Method Details
#ordinal ⇒ Object
16 |
# File 'lib/utility_functions.rb', line 16 def ordinal; self.to_i.ordinal; end |
#two_digits ⇒ Object
12 13 14 |
# File 'lib/utility_functions.rb', line 12 def two_digits self.rjust(2, '0') end |