Sample code for 30+ languages & platforms
Ruby

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat Ruby Downloads

Ruby
require 'chilkat'

http = Chilkat::CkHttp.new()

domain = http.getDomain("https://chilkatsoft.com/refdoc/csharp.asp")
print domain + "\n";

# Output: chilkatsoft.com