Module: BELParser::Resource::Value

Included in:
Concept, FileResourceValue, JenaTDBReader::Concept
Defined in:
lib/bel_parser/resource/value.rb

Overview

Value

Instance Method Summary collapse

Instance Method Details

#<=>(another_value) ⇒ Object



30
31
32
# File 'lib/bel_parser/resource/value.rb', line 30

def <=>(another_value)
  name <=> another_value.name
end

#==(another_value) ⇒ Object Also known as: eql?



38
39
40
41
42
43
# File 'lib/bel_parser/resource/value.rb', line 38

def ==(another_value)
  return false if another_value == nil
  dataset   == another_value.dataset &&
  name      == another_value.name &&
  encodings == another_value.encodings
end

#datasetObject

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/bel_parser/resource/value.rb', line 6

def dataset
  raise NotImplementedError, "#{__method__} is not implemented."
end

#encodingsObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/bel_parser/resource/value.rb', line 26

def encodings
  raise NotImplementedError, "#{__method__} is not implemented."
end

#hashObject



34
35
36
# File 'lib/bel_parser/resource/value.rb', line 34

def hash
  [dataset, name, encodings].hash
end

#identifierObject



14
15
16
# File 'lib/bel_parser/resource/value.rb', line 14

def identifier
  nil
end

#nameObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/bel_parser/resource/value.rb', line 10

def name
  raise NotImplementedError, "#{__method__} is not implemented."
end

#synonymsObject



22
23
24
# File 'lib/bel_parser/resource/value.rb', line 22

def synonyms
  []
end

#titleObject



18
19
20
# File 'lib/bel_parser/resource/value.rb', line 18

def title
  nil
end

#to_sObject



46
47
48
# File 'lib/bel_parser/resource/value.rb', line 46

def to_s
  name
end