Sha256: cd6197fde8c8800e69f8c0a7fcff9c2df3290968e0e1650da0617a5e26c8dc43

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

require 'yard'

module YARD
  module Handlers
    module Ruby
      class Base < Handlers::Base

        protected

        def effected_namespace
          if statement.type == :command_call
            context = statement.jump(:var_ref)

            unless context.source == 'self'
              return ensure_loaded!(
                Registry.resolve(namespace,context.source)
              )
            end
          end

          return namespace
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-0.3.0 lib/ronin/yard/handlers/ruby/base.rb