Class: DocRSpec::Compiler

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

Defined Under Namespace

Classes: IncorrectSpec

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#example_groupObject (readonly)

Returns the value of attribute example_group.



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

def example_group
  @example_group
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#spec_definitionsObject (readonly)

Returns the value of attribute spec_definitions.



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

def spec_definitions
  @spec_definitions
end

Instance Method Details

#compileObject



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

def compile
  spec_definitions.each { compile_context it }
end