Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/hashid.rb

Overview

Convert Fixnum to HashId (String)

Instance Method Summary collapse

Instance Method Details

#to_hashid(salt = nil) ⇒ Object



137
138
139
# File 'lib/hashid.rb', line 137

def to_hashid(salt = nil)
	HashId.new(salt).encrypt(self)
end