class Skynet

The entrypoint for the SDK

Constants

URI_SKYNET_PREFIX

Prefix for the protocol

Public Class Methods

strip_prefix(str) click to toggle source

Removes the Skynet::URI_SKYNET_PREFIX constant from string

# File lib/skynet.rb, line 17
def self.strip_prefix(str)
  return nil if str.nil?

  if str.index(URI_SKYNET_PREFIX).nil?
    str
  else
    str.delete_prefix(URI_SKYNET_PREFIX)
  end
end