Method: WordNet::SemanticLink#to_s
- Defined in:
- lib/wordnet/semanticlink.rb
#to_s ⇒ Object
Return a stringified version of the SemanticLink.
39 40 41 42 43 44 45 |
# File 'lib/wordnet/semanticlink.rb', line 39 def to_s return "%s: %s (%s)" % [ self.type, self.target.words.map( &:to_s ).join( ', ' ), self.target.pos, ] end |