Module: Docs::Spec

Includes:
ExampleHelper
Defined in:
lib/docs/spec.rb

Class Method Summary collapse

Methods included from ExampleHelper

#example, #examples

Class Method Details

.included(base) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/docs/spec.rb', line 10

def self.included(base)
  @erb_environment = ERBEnvironment.new
  @erb_environment.config = @config = Config.new
  @erb = ERBRenderer.new(@erb_environment)

  @examples = examples("#{@config.directories['examples']}/**/*", @erb)  
end