Class: Julius::Message::Recogout
- Inherits:
-
Julius::Message
- Object
- Julius::Message
- Julius::Message::Recogout
- Includes:
- Enumerable
- Defined in:
- lib/julius/message.rb
Defined Under Namespace
Classes: Shypo
Instance Method Summary collapse
- #[](nth) ⇒ Object (also: #at)
- #each(&block) ⇒ Object
- #first ⇒ Object
-
#initialize(element) ⇒ Recogout
constructor
A new instance of Recogout.
- #sentence ⇒ Object
Methods inherited from Julius::Message
Constructor Details
Instance Method Details
#[](nth) ⇒ Object Also known as: at
66 67 68 |
# File 'lib/julius/message.rb', line 66 def [] nth @shypo_list[nth] end |
#each(&block) ⇒ Object
56 57 58 59 60 |
# File 'lib/julius/message.rb', line 56 def each(&block) return self.to_enum unless block_given? @shypo_list.each(&block) self end |
#first ⇒ Object
62 63 64 |
# File 'lib/julius/message.rb', line 62 def first @shypo_list.first end |
#sentence ⇒ Object
72 73 74 |
# File 'lib/julius/message.rb', line 72 def sentence self.first.map{|whypo| whypo.to_s }.join end |