Sha256: 6023bec111f42609706ded7a406c5cd7545c17824e66c1249a09995bfea427ec

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

module NginxTail
  module BodyBytesSent
    
    def self.included(base) # :nodoc:
      base.class_eval do

        # this ensures the below module methods actually make sense...
        raise "Class #{base.name} should implement instance method 'body_bytes_sent'" unless base.instance_methods.include? 'body_bytes_sent'
        
      end
    end
        
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ntail-0.0.11 lib/ntail/body_bytes_sent.rb
ntail-0.0.10 lib/ntail/body_bytes_sent.rb
ntail-0.0.9 lib/ntail/body_bytes_sent.rb
ntail-0.0.8 lib/ntail/body_bytes_sent.rb
ntail-0.0.7 lib/ntail/body_bytes_sent.rb