Sha256: 714fd74241db010979134e986481a962f6785a858316dab1caaf0652dc8a7ddf

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

module YOWL
  
  class Person < YOWL::LabelledDocObject
    
    def initialize(resource, schema)
      super(resource, schema)
      @name = nil
    end
     
    def setName(name_)
      @name = name_
    end
     
    def name()
      name = get_literal(YOWL::Namespaces::FOAF.name)
      if name.nil? or name.empty?
        name = short_name()
      end
      return name
    end
     
    def <=>(other)
      return name() <=> other.name()
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yowl-0.4.2 lib/yowl/person.rb
yowl-0.4.1 lib/yowl/person.rb
yowl-0.4 lib/yowl/person.rb
yowl-0.4.pre lib/yowl/person.rb