Class: Juman::Result
Instance Method Summary collapse
- #[](nth) ⇒ Object (also: #at)
- #each(&block) ⇒ Object
-
#initialize(lines) ⇒ Result
constructor
A new instance of Result.
Constructor Details
Instance Method Details
#[](nth) ⇒ Object Also known as: at
17 18 19 |
# File 'lib/juman/result.rb', line 17 def [](nth) @morphemes[nth] end |
#each(&block) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/juman/result.rb', line 8 def each(&block) if block_given? @morphemes.each(&block) self else self.to_enum end end |