Module: Relationship
- Extended by:
- Annotation, Entity
- Defined in:
- lib/rbbt/relationship.rb,
lib/rbbt/segment/relationship.rb
Instance Method Summary collapse
Instance Method Details
#html ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rbbt/relationship.rb', line 17 def html text = <<-EOF <span class='Relationship'\ >#{ self.text }</span> EOF text.chomp end |
#text ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rbbt/relationship.rb', line 9 def text if segment segment else type + ": " + terms * ", " end end |