Class: Commands::HelloWorld
- Inherits:
-
Object
- Object
- Commands::HelloWorld
- Defined in:
- lib/commands/hello_world.rb
Class Method Summary collapse
Instance Method Summary collapse
- #go ⇒ Object
-
#initialize(args, settings) ⇒ HelloWorld
constructor
A new instance of HelloWorld.
- #media? ⇒ Boolean
- #respond ⇒ Object
Constructor Details
#initialize(args, settings) ⇒ HelloWorld
Returns a new instance of HelloWorld.
3 4 |
# File 'lib/commands/hello_world.rb', line 3 def initialize(args, settings) end |
Class Method Details
.matches ⇒ Object
18 19 20 |
# File 'lib/commands/hello_world.rb', line 18 def self.matches ['hw', 'hello world'] end |
Instance Method Details
#go ⇒ Object
6 7 8 |
# File 'lib/commands/hello_world.rb', line 6 def go `say "Hello, World!"` end |
#media? ⇒ Boolean
14 15 16 |
# File 'lib/commands/hello_world.rb', line 14 def media? false end |
#respond ⇒ Object
10 11 12 |
# File 'lib/commands/hello_world.rb', line 10 def respond "Hello, World!" end |