# coding: utf-8
require 'config'
class Person
def initialize(name)
@name = name
end
def name
@name
end
def uri
Config::get.person_uri(@name)
end
def email
Config::get.person_email(@name)
end
def html
if not email.nil?
return "#{name}"
elsif not uri.nil?
return "#{name}"
else
return name
end
end
def atom
ret = ""
ret += "#{name}" unless name.nil?
ret += "#{uri}" unless uri.nil?
ret += "#{email}" unless email.nil?
end
end