class String
Public Class Methods
random_token(length = 12)
click to toggle source
# File lib/smooth/ext/core.rb, line 18 def self.random_token(length = 12) rand(36**36).to_s(36).slice(0, length) end
Public Instance Methods
empty?()
click to toggle source
# File lib/smooth/ext/core.rb, line 14 def empty? length == 0 end