Class: String

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

Overview

Convert HashId (String) to Fixnum

Instance Method Summary collapse

Instance Method Details

#from_hashid(salt = nil) ⇒ Object



144
145
146
# File 'lib/hashid.rb', line 144

def from_hashid(salt = nil)
  HashId.new(salt).decrypt(self)
end