Method: WebServerUid.from_hex

Defined in:
lib/web_server_uid.rb

.from_hex(h, options = { }) ⇒ Object

Creates a new instance from a hex string; see #initialize for more details. Nicely returns nil if passed nil.



41
42
43
# File 'lib/web_server_uid.rb', line 41

def from_hex(h, options = { })
  new(h, :hex, options) if h
end