Module: UUID::TemplateUUID4R

Included in:
V1, V3, V4, V5
Defined in:
lib/uuid4r-candy.rb

Overview

Will accept :str, :bin, :txt

Instance Method Summary collapse

Instance Method Details

#to_bObject



12
13
14
# File 'lib/uuid4r-candy.rb', line 12

def to_b
  self.export(:bin)
end

#to_sObject



9
10
11
# File 'lib/uuid4r-candy.rb', line 9

def to_s
  self.export(:str)
end

#to_txtObject



15
16
17
# File 'lib/uuid4r-candy.rb', line 15

def to_txt
  self.export(:txt)
end