Sha256: d6349602fac39546f0d13a43189cb02cceca567576ee1fa7e9e1bdb3ffc9723f

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

module YARD
  module Server
    
    class Adapter
      
      class << self
      
        alias_method :yard_setup, :setup
      
        def setup
          yard_setup
          YARD::Templates::Engine.template_paths += 
          [File.dirname(__FILE__) + '/../../templates',File.dirname(__FILE__) + '/../../docserver']
        end
        
        alias_method :yard_shutdown, :shutdown

        def yard_shutdown
          YARD::Templates::Engine.template_paths -= 
          [File.dirname(__FILE__) + '/../../templates',File.dirname(__FILE__) + '/../../docserver']
        end  
        
      end
      

    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yard-cucumber-2.0.0 lib/yard/server/adapter.rb