Sha256: 3da56d40a8654fd1d577a6ed287f21b30ddcd8807bbe63879a8666e6258b2f7d

Contents?: true

Size: 1.8 KB

Versions: 11

Compression:

Stored size: 1.8 KB

Contents

require_relative '../../version2_0'
require_relative '../../relationship'

module BELParser
  module Language
    module Version2_0
      module Relationships
        # 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.
        class HasMembers
          extend Relationship

          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

          def self.short
            SHORT
          end

          def self.long
            LONG
          end

          def self.description
            DESCRIPTION
          end

          def self.directed?
            true
          end

          def self.listable?
            true
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bel_parser-1.1.6-java lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.6 lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.5 lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.4-java lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.4 lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.3-java lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.3 lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.2-java lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.2 lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.1-java lib/bel_parser/language/version2_0/relationships/has_members.rb
bel_parser-1.1.1 lib/bel_parser/language/version2_0/relationships/has_members.rb