Sha256: 4a29057dddcff9b75cf70c353a7712346ccc41b482648bddaec6d8401db1c5b7

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 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 'inch/evaluation/proxy/base'
require 'inch/evaluation/proxy/namespace_object'
require 'inch/evaluation/proxy/class_object'
require 'inch/evaluation/proxy/constant_object'
require 'inch/evaluation/proxy/method_object'
require 'inch/evaluation/proxy/module_object'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inch-0.5.0.rc2 lib/inch/evaluation/proxy.rb
inch-0.5.0.rc1 lib/inch/evaluation/proxy.rb
inch-0.4.6 lib/inch/evaluation/proxy.rb
inch-0.4.5 lib/inch/evaluation/proxy.rb