Sha256: d4f5824a215506a62894fe42995c64d92b4a4dc267319d1a74e9699b37e2c6ee

Contents?: true

Size: 380 Bytes

Versions: 13

Compression:

Stored size: 380 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.map(&:to_s).include? 'body_bytes_sent'
        
      end
    end
        
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ntail-1.3.1 lib/ntail/body_bytes_sent.rb
ntail-1.3.0 lib/ntail/body_bytes_sent.rb
ntail-1.2.0 lib/ntail/body_bytes_sent.rb
ntail-1.1.4 lib/ntail/body_bytes_sent.rb
ntail-1.1.3 lib/ntail/body_bytes_sent.rb
ntail-1.1.2 lib/ntail/body_bytes_sent.rb
ntail-1.1.1 lib/ntail/body_bytes_sent.rb
ntail-1.1.0 lib/ntail/body_bytes_sent.rb
ntail-1.0.2 lib/ntail/body_bytes_sent.rb
ntail-1.0.0 lib/ntail/body_bytes_sent.rb
ntail-0.2.0 lib/ntail/body_bytes_sent.rb
ntail-0.1.0 lib/ntail/body_bytes_sent.rb
ntail-0.0.12 lib/ntail/body_bytes_sent.rb