Class: Commands::HelloWorld

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/hello_world.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.matchesObject



18
19
20
# File 'lib/commands/hello_world.rb', line 18

def self.matches
  ['hw', 'hello world']
end

Instance Method Details

#goObject



6
7
8
# File 'lib/commands/hello_world.rb', line 6

def go
  `say "Hello, World!"`
end

#media?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/commands/hello_world.rb', line 14

def media?
  false
end

#respondObject



10
11
12
# File 'lib/commands/hello_world.rb', line 10

def respond
  "Hello, World!"
end