Module: DocWrapper::Base

Defined in:
lib/doc_wrapper/base.rb

Class Method Summary collapse

Class Method Details

.to_target_doc(src, opts = {}) ⇒ Object



5
6
7
8
# File 'lib/doc_wrapper/base.rb', line 5

def self.to_target_doc src , opts={}
  wrapper = wrapper_target src, opts
  wrapper.to_target_doc src
end

.wrapper_target(src, opts = {}) ⇒ Object



10
11
12
13
14
# File 'lib/doc_wrapper/base.rb', line 10

def self.wrapper_target src, opts={}
  doc_origem = infer_doc_origem src, opts
  klass_str = klass_name doc_origem, opts
  klass_str.constantize
end