Module: Azuma::Announcement
- Included in:
- Designator
- Defined in:
- lib/azuma/announcement.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
Instance Method Summary collapse
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language.
5 6 7 |
# File 'lib/azuma/announcement.rb', line 5 def language @language end |
Instance Method Details
#next_talker ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/azuma/announcement.rb', line 7 def next_talker super.tap do |talker| = if talker (talker) else curtain_talk end puts if /darwin/ === RUBY_PLATFORM system("say #{Shellwords.shellescape()}") end end end |