Module: Wan3videoSiteKit

Defined in:
lib/wan3video_site_kit.rb

Constant Summary collapse

BASE =
"https://wan3video.art"
BRAND =
"WAN 3.0 Video"

Class Method Summary collapse

Class Method Details

.home_urlObject



5
# File 'lib/wan3video_site_kit.rb', line 5

def self.home_url = "#{BASE}/"

.page_url(path = "/") ⇒ Object



6
7
8
9
# File 'lib/wan3video_site_kit.rb', line 6

def self.page_url(path = "/")
  p = path.to_s.start_with?("/") ? path : "/#{path}"
  "#{BASE}#{p == "/" ? "/" : p.sub(%r{/+\z}, "")}"
end