Sha256: c90b0cfa6c69cf43f36fb261a717cac9900275b62a15f3a3e3630bca83fe97c4
Contents?: true
Size: 315 Bytes
Versions: 3
Compression:
Stored size: 315 Bytes
Contents
module Slappy class Event extend Forwardable attr_reader :matches def_delegators :@data, :method_missing, :respond_to_missing? def initialize(data, pattern) @data = Hashie::Mash.new data @matches = text.match pattern end def text @data['text'].to_s end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slappy-0.4.0 | lib/slappy/event.rb |
slappy-0.3.0 | lib/slappy/event.rb |
slappy-0.2.1 | lib/slappy/event.rb |