Module: NanDoc::SpecDoc::GenericInstanceMethods
- Defined in:
- lib/nandoc/spec-doc.rb
Overview
Experimental nandoc hook to give random ass objects a hook to some kind of SpecDoc agent thing that can a) not necessarily be a test case but b) still write recordings somehow. let’s see what happens. hook.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.include_to(mod) ⇒ Object
50 51 52 |
# File 'lib/nandoc/spec-doc.rb', line 50 def include_to mod mod.send(:include, self) end |
Instance Method Details
#nandoc ⇒ Object
54 55 56 57 58 59 |
# File 'lib/nandoc/spec-doc.rb', line 54 def nandoc @nandoc_agent ||= begin require File.dirname(__FILE__)+'/spec-doc/generic-agent' GenericAgent.new(self) end end |