Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/utiles_integer.rb
Overview
Extentions for Integer class.
Instance Method Summary collapse
-
#is_blank? ⇒ Boolean
Checks if it is blank.
-
#noe? ⇒ Boolean
Checks if it is nil or empty.
-
#to_data_vol ⇒ String
Formats integer to data volume.
Instance Method Details
#is_blank? ⇒ Boolean
Checks if it is blank.
14 15 16 |
# File 'lib/utiles_integer.rb', line 14 def is_blank? false end |
#noe? ⇒ Boolean
Checks if it is nil or empty.
7 8 9 |
# File 'lib/utiles_integer.rb', line 7 def noe? false end |
#to_data_vol ⇒ String
Formats integer to data volume.
24 25 26 |
# File 'lib/utiles_integer.rb', line 24 def to_data_vol to_s.to_data_vol end |