Module: BELParser::Resource::Value
- Included in:
- Concept, FileResourceValue, JenaTDBReader::Concept
- Defined in:
- lib/bel_parser/resource/value.rb
Overview
Value
Instance Method Summary collapse
- #<=>(another_value) ⇒ Object
- #==(another_value) ⇒ Object (also: #eql?)
- #dataset ⇒ Object
- #encodings ⇒ Object
- #hash ⇒ Object
- #identifier ⇒ Object
- #name ⇒ Object
- #synonyms ⇒ Object
- #title ⇒ Object
- #to_s ⇒ Object
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 |
#dataset ⇒ Object
6 7 8 |
# File 'lib/bel_parser/resource/value.rb', line 6 def dataset raise NotImplementedError, "#{__method__} is not implemented." end |
#encodings ⇒ Object
26 27 28 |
# File 'lib/bel_parser/resource/value.rb', line 26 def encodings raise NotImplementedError, "#{__method__} is not implemented." end |
#hash ⇒ Object
34 35 36 |
# File 'lib/bel_parser/resource/value.rb', line 34 def hash [dataset, name, encodings].hash end |
#identifier ⇒ Object
14 15 16 |
# File 'lib/bel_parser/resource/value.rb', line 14 def identifier nil end |
#name ⇒ Object
10 11 12 |
# File 'lib/bel_parser/resource/value.rb', line 10 def name raise NotImplementedError, "#{__method__} is not implemented." end |
#synonyms ⇒ Object
22 23 24 |
# File 'lib/bel_parser/resource/value.rb', line 22 def synonyms [] end |
#title ⇒ Object
18 19 20 |
# File 'lib/bel_parser/resource/value.rb', line 18 def title nil end |
#to_s ⇒ Object
46 47 48 |
# File 'lib/bel_parser/resource/value.rb', line 46 def to_s name end |