class Fixnum
Public Instance Methods
translate(desc = '', tokens = {}, options = {})
click to toggle source
# File lib/tml/ext/fixnum.rb, line 38 def translate(desc = '', tokens = {}, options = {}) to_s.translate(desc, tokens, options) end
Also aliased as: tr
trl(desc = '', tokens = {}, options = {})
click to toggle source
# File lib/tml/ext/fixnum.rb, line 43 def trl(desc = '', tokens = {}, options = {}) to_s.trl(desc, tokens, options) end
with_leading_zero()
click to toggle source
# File lib/tml/ext/fixnum.rb, line 34 def with_leading_zero (to_i < 10 ? "0#{to_s}" : to_s) end