class Fixnum

Public Instance Methods

tr(desc = "", tokens = {}, options = {})
Alias for: translate
translate(desc = "", tokens = {}, options = {}) click to toggle source
# File lib/tr8n_core/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/tr8n_core/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/tr8n_core/ext/fixnum.rb, line 34
def with_leading_zero
  (to_i < 10 ? "0#{to_s}" : to_s)
end