module Tweakphoeus::Helpers

Helper functions for common behavious across all classes

Public Instance Methods

get_domain(domain) click to toggle source
# File lib/tweakphoeus/helpers.rb, line 6
def get_domain(domain)
  domain.match(%r{([a-zA-Z0-9]+://|)([^/]+)})[2].gsub(/^\./, '')
end