Class: BELParser::Language::Version2_0::Relationships::HasMembers

Inherits:
Object
  • Object
show all
Extended by:
Relationship
Defined in:
lib/bel_parser/language/version2_0/relationships/has_members.rb

Overview

HasMembers: A hasMembers (B, C, D) - The hasMembers relationship is a special form which enables the assignment of multiple member classes in a single statement where the object of the statement is a set of abundance terms. A statement using hasMembers is exactly equivalent to multiple hasMember statements. A term may not appear in both the subject and object of a of the same hasMembers statement. For the abundance terms A, B, C and D, A hasMembers B, C, D indicates that A is defined by its member abundance classes B, C and D.

Constant Summary collapse

SHORT =
:hasMembers
LONG =
:hasMembers
DESCRIPTION =
<<-DOC
HasMembers:  +A hasMembers (B, C, D)+ -  The hasMembers
relationship is a special form which enables the assignment of
multiple member classes in a single statement where the object
of the statement is a set of abundance terms. A statement
using hasMembers is exactly equivalent to multiple hasMember
statements. A term may not appear in both the subject and
object of a of the same hasMembers statement. For the abundance
terms A, B, C and D, +A hasMembers B, C, D+ indicates that A
is defined by its member abundance classes B, C and D.
DOC

Class Method Summary collapse

Methods included from Relationship

==, =~, causal?, correlative?, decreasing?, deprecated?, description, direct?, directed?, genomic?, increasing?, indirect?, injected?, listable?, long, self?, short, to_h, to_s, to_sym

Class Method Details

.descriptionObject



43
44
45
# File 'lib/bel_parser/language/version2_0/relationships/has_members.rb', line 43

def self.description
  DESCRIPTION
end

.directed?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/bel_parser/language/version2_0/relationships/has_members.rb', line 47

def self.directed?
  true
end

.listable?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/bel_parser/language/version2_0/relationships/has_members.rb', line 51

def self.listable?
  true
end

.longObject



39
40
41
# File 'lib/bel_parser/language/version2_0/relationships/has_members.rb', line 39

def self.long
  LONG
end

.shortObject



35
36
37
# File 'lib/bel_parser/language/version2_0/relationships/has_members.rb', line 35

def self.short
  SHORT
end