Sha256: a1de1296fa2e44b9fac35ca664cb809a35480632d28652b0a1359d91055acbbb

Contents?: true

Size: 284 Bytes

Versions: 6

Compression:

Stored size: 284 Bytes

Contents

module MadChatter
  class Extensions
    
    def self.load_simple_extensions(extensions)
      instance_eval extensions, __FILE__, __LINE__
    end
    
    def self.on_message(regex, &block)
      MadChatter.simple_extensions << { regex: regex, block: block }
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mad_chatter-0.2.1 lib/mad_chatter/extensions.rb
mad_chatter-0.2.0 lib/mad_chatter/extensions.rb
mad_chatter-0.1.3 lib/mad_chatter/extensions.rb
mad_chatter-0.1.2 lib/mad_chatter/extensions.rb
mad_chatter-0.1.1 lib/mad_chatter/extensions.rb
mad_chatter-0.1.0 lib/mad_chatter/extensions.rb