Sha256: 29f42c9dbc1e10a5d579ea9d4dfddcecd2abf1ed5a8de207bf71fd4f2c0fc6e8

Contents?: true

Size: 207 Bytes

Versions: 3

Compression:

Stored size: 207 Bytes

Contents

class Responder
  attr_accessor :command, :block

  def initialize(command, &block)
    @command = command
    @block = block
  end

  def responds_to?(command)
    @command == command.split.first
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
happy_fun_time_bot-0.1.2 lib/responder.rb
happy_fun_time_bot-0.1.1 lib/responder.rb
happy_fun_time_bot-0.1.0 lib/responder.rb