class RubyKpi::Triple

The Triple class

Attributes

object[R]

accessor

predicate[R]

accessor

subject[R]

accessor

Public Class Methods

new(subject, predicate, object) click to toggle source

constructor

# File lib/DataStructures.rb, line 67
def initialize(subject, predicate, object)
  
  # subject
  @subject = subject

  # predicate
  @predicate = predicate

  # object
  @object = object

end

Public Instance Methods

to_str() click to toggle source

to string

# File lib/DataStructures.rb, line 81
def to_str()
  
  return "[" + @subject.to_str() + ", " + @predicate.to_str() + ", " + @object.to_str() + "]"

end