UtopiaSourceUtopiaContentLink

class Link

Represents a link to some content with associated metadata.

Definitions

def initialize(kind, name, locale, path, info, title = nil)

Implementation

def initialize(kind, name, locale, path, info, title = nil)
	@kind = kind
	@name = name
	@locale = locale
	@path = Path.create(path)
	@info = info || {}
	@title = XRB::Strings.to_title(title || name)
end

def [] key

Look up from the links.yaml metadata with a given symbolic key.

Implementation

def [] key
	@info[key]
end