Class: Commands::Cat

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, settings) ⇒ Cat

Returns a new instance of Cat.



3
4
# File 'lib/commands/cat.rb', line 3

def initialize(args, settings)
end

Class Method Details

.matchesObject



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

def self.matches
  ['cat', 'cat mit', 'nyan']
end

Instance Method Details

#goObject



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

def go
  `open 'http://www.youtube.com/watch?v=QH2-TGUlwu4'`
end

#media?Boolean

Returns:

  • (Boolean)


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

def media?
  false
end

#respondObject



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

def respond
  "Nyan Nyan Nyan Nyan Nyan Nyan Nyan..."
end