Class: Gloo::Objs::Play
- Inherits:
-
GlooLang::Core::Obj
- Object
- GlooLang::Core::Obj
- Gloo::Objs::Play
- Defined in:
- lib/gloo/objs/snd/play.rb
Constant Summary collapse
- KEYWORD =
'play'.freeze
- KEYWORD_SHORT =
'play'.freeze
Class Method Summary collapse
-
.messages ⇒ Object
Get a list of message names that this object receives.
-
.short_typename ⇒ Object
The short name of the object type.
-
.typename ⇒ Object
The name of the object type.
Instance Method Summary collapse
-
#msg_run ⇒ Object
Play the audio file.
Class Method Details
.messages ⇒ Object
Get a list of message names that this object receives.
35 36 37 |
# File 'lib/gloo/objs/snd/play.rb', line 35 def self. return super + [ 'run' ] end |
.short_typename ⇒ Object
The short name of the object type.
24 25 26 |
# File 'lib/gloo/objs/snd/play.rb', line 24 def self.short_typename return KEYWORD_SHORT end |
.typename ⇒ Object
The name of the object type.
17 18 19 |
# File 'lib/gloo/objs/snd/play.rb', line 17 def self.typename return KEYWORD end |
Instance Method Details
#msg_run ⇒ Object
Play the audio file.
42 43 44 |
# File 'lib/gloo/objs/snd/play.rb', line 42 def msg_run system "afplay #{value}" end |