Sha256: 720b1f498fe5040da5d1b37247c880747746ab22d44f106180a349b9882b1cac

Contents?: true

Size: 671 Bytes

Versions: 29

Compression:

Stored size: 671 Bytes

Contents

module Inch
  # The Evaluation module concerns itself with the evaluation of code objects
  # with regard to their inline code documentation
  module Evaluation
    module Proxy
      def self.for(code_object)
        class_for(code_object).new(code_object)
      end

      private

      def self.class_for(code_object)
        class_name = code_object.class.to_s.split('::').last
        const_get(class_name)
      end
    end
  end
end

require_relative 'proxy/base'
require_relative 'proxy/namespace_object'
require_relative 'proxy/class_object'
require_relative 'proxy/constant_object'
require_relative 'proxy/method_object'
require_relative 'proxy/module_object'

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
inch-0.4.4 lib/inch/evaluation/proxy.rb
inch-0.4.4.rc4 lib/inch/evaluation/proxy.rb
inch-0.4.4.rc3 lib/inch/evaluation/proxy.rb
inch-0.4.4.rc2 lib/inch/evaluation/proxy.rb
inch-0.4.4.rc1 lib/inch/evaluation/proxy.rb
inch-0.4.3 lib/inch/evaluation/proxy.rb
inch-0.4.3.rc2 lib/inch/evaluation/proxy.rb
inch-0.4.3.rc1 lib/inch/evaluation/proxy.rb
inch-0.4.2 lib/inch/evaluation/proxy.rb
inch-0.4.1 lib/inch/evaluation/proxy.rb
inch-0.4.0 lib/inch/evaluation/proxy.rb
inch-0.4.0.rc3 lib/inch/evaluation/proxy.rb
inch-0.4.0.rc2 lib/inch/evaluation/proxy.rb
inch-0.4.0.rc1 lib/inch/evaluation/proxy.rb
inch-0.3.4.rc1 lib/inch/evaluation/proxy.rb
inch-0.3.3 lib/inch/evaluation/proxy.rb
inch-0.3.3.rc1 lib/inch/evaluation/proxy.rb
inch-0.3.2 lib/inch/evaluation/proxy.rb
inch-0.3.2.rc2 lib/inch/evaluation/proxy.rb
inch-0.3.2.rc1 lib/inch/evaluation/proxy.rb