Method: WordNet::Pointer#initialize

Defined in:
lib/rwordnet/pointer.rb

#initialize(symbol: raise, offset: raise, pos: raise, source: raise) ⇒ Pointer

Create a pointer. Pointers represent the relations between the words in one synset and another, and are referenced by a shorthand symbol (e.g. ‘!’ for verb antonym). The list of valid pointer symbols is defined in pointers.rb



23
24
25
26
# File 'lib/rwordnet/pointer.rb', line 23

def initialize(symbol: raise, offset: raise, pos: raise, source: raise)
  @symbol, @offset, @pos, @source = symbol, offset, pos, source
  @target = source.slice!(2,2)
end