Class: DocRSpec::Compiler

Inherits:
Object
  • Object
show all
Includes:
Debugging
Defined in:
lib/doc_rspec/compiler.rb

Defined Under Namespace

Classes: IncorrectSpec

Constant Summary

Constants included from Debugging

Debugging::DEBUG_ENV_VAR_NAME

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Debugging

#debug_level, #debugging?

Instance Attribute Details

#example_groupObject (readonly)

Returns the value of attribute example_group.



8
9
10
# File 'lib/doc_rspec/compiler.rb', line 8

def example_group
  @example_group
end

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/doc_rspec/compiler.rb', line 8

def path
  @path
end

#spec_definitionsObject (readonly)

Returns the value of attribute spec_definitions.



8
9
10
# File 'lib/doc_rspec/compiler.rb', line 8

def spec_definitions
  @spec_definitions
end

Instance Method Details

#compileObject



10
11
12
# File 'lib/doc_rspec/compiler.rb', line 10

def compile
  spec_definitions.each { compile_context it }
end