Class: YARD::Handlers::Ruby::StepDefinitionHandler

Inherits:
Base
  • Object
show all
Defined in:
lib/yard/handlers/step_definition_handler.rb

Overview

Finds and processes all the step definitions defined in the ruby source code. By default the english gherkin language will be parsed.

To override the language you can define the step definitions in the YARD configuration file ‘~./yard/config`:

Examples:

‘~/.yard/config` with LOLCatz step definitions


:"yard-cucumber": 
  language: 
    step_definitions: [ 'WEN', 'I CAN HAZ', 'AN', 'DEN' ]

‘~/.yard/config` with French step definitions


:"yard-cucumber": 
  language: 
    step_definitions: [ 'Soit', 'Etantdonné', 'Lorsque', 'Lorsqu', 'Alors', 'Et' ]

Constant Summary collapse

@@unique_name =
0