module Nuggets::URI::ContentTypeMixin
Public Class Methods
          extended(base)
          
          click to toggle source
          
        
        
        # File lib/nuggets/uri/content_type_mixin.rb 33 def self.extended(base) 34 base.extend Nuggets::URI::ExistMixin 35 end
Public Instance Methods
          
            content_type(uri) → aString or +nil+
          
          
          click to toggle source
          
        
        
        
        Return the content type of uri, or nil if not found.
# File lib/nuggets/uri/content_type_mixin.rb 41 def content_type(uri) 42 exist?(uri) { |res| res.content_type } 43 end