Module: Relationship

Extended by:
Annotation, Entity
Defined in:
lib/rbbt/relationship.rb,
lib/rbbt/segment/relationship.rb

Instance Method Summary collapse

Instance Method Details

#htmlObject



17
18
19
20
21
22
23
# File 'lib/rbbt/relationship.rb', line 17

def html
  text = "<span class='Relationship'\\\n>\#{ self.text }</span>\n  EOF\n  text.chomp\nend\n"

#textObject



9
10
11
12
13
14
15
# File 'lib/rbbt/relationship.rb', line 9

def text
  if segment
    segment
  else
    type + ": " + terms * ", "
  end
end