Class: MeCab::Node

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/linkterm.rb

Instance Method Summary collapse

Methods included from Enumerable

#partitions

Instance Method Details

#categoryObject



34
35
36
# File 'lib/linkterm.rb', line 34

def category
  return self.feature.split(/,/)[0]
end

#each(&b) ⇒ Object



38
39
40
41
# File 'lib/linkterm.rb', line 38

def each(&b)
  b[self]
  self.next.each(&b) if self.next
end