Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/extend_fixnum.rb
Instance Method Summary collapse
-
#to_label ⇒ Object
Converts number to a string with a format like xx,xxx,xxx.xxxx.
-
#to_time_spent ⇒ Object
Convierte una cantidad de minutos a una leyenda legible por el usuario.
Instance Method Details
#to_label ⇒ Object
Converts number to a string with a format like xx,xxx,xxx.xxxx
3 4 5 |
# File 'lib/extend_fixnum.rb', line 3 def to_label() BlackStack::Number::Encoding::format_with_separator(self) end |
#to_time_spent ⇒ Object
Convierte una cantidad de minutos a una leyenda legible por el usuario. Ejemplo: “2 days, 5 hours” Ejemplo: “4 hours, 30 minutes” Ejemplo: “3 days, 4 hour”
11 12 13 |
# File 'lib/extend_fixnum.rb', line 11 def to_time_spent() BlackStack::Number::Encoding::encode_minutes(self) end |