Sha256: 34e9ff1b7f3ad9b82311b6765ea3bc7f48b1e16178bb002e8397328efc00e855

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

# An extension to Marvin::IRC::Event which
# lets a user specify a prefix to use.
class Marvin::Parsers::SimpleParser < Marvin::AbstractParser
  
  class EventWithPrefix < Marvin::IRC::Event
    attr_accessor :prefix
    
    def to_hash
      super.merge(prefix.blank? ? {} : prefix.to_hash)
    end
    
  end
  
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
Sutto-marvin-0.1.0.20081016 lib/marvin/parsers/simple_parser/event_extensions.rb
Sutto-marvin-0.1.20081115 lib/marvin/parsers/simple_parser/event_extensions.rb
jeffrafter-marvin-0.1.20081115 lib/marvin/parsers/simple_parser/event_extensions.rb