Class: Dor::Ontology

Inherits:
Object
  • Object
show all
Extended by:
Deprecation
Defined in:
lib/dor/services/ontology.rb

Defined Under Namespace

Classes: Term

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



8
9
10
# File 'lib/dor/services/ontology.rb', line 8

def self.[](key)
  @data[key]
end

.include?(key) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/dor/services/ontology.rb', line 17

def self.include?(key)
  @data.include?(key)
end

.key?(key) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/dor/services/ontology.rb', line 13

def self.key?(key)
  @data.key?(key)
end

.property(key) ⇒ Object



22
23
24
# File 'lib/dor/services/ontology.rb', line 22

def self.property(key)
  Term.new(@data[key])
end