Sha256: 7936ffeeb359bf28884177b8172c7d4ed040b7f7f81f8719cde060224473575f

Contents?: true

Size: 580 Bytes

Versions: 19

Compression:

Stored size: 580 Bytes

Contents

class YARD::Handlers::Ruby::StepTransformHandler < YARD::Handlers::Ruby::Base
  handles method_call(:Transform)
  
  @@unique_name = 0

  process do
    @@unique_name += 1
    
    instance = YARD::CodeObjects::StepTransformObject.new(YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE,"step_transform#{@@unique_name}") do |o| 
      o.source = statement.source
      o.comments = statement.comments
      o.keyword = statement[0].source
      o.value = statement[1].source
    end

    obj = register instance
    parse_block(statement[2],:owner => obj)

  end

end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
yard-cucumber-2.2.2 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.2.1 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.2.0 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.7 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.6 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.5 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.4 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.3 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.2 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.1 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.1.0 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.0.3 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.0.2 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.0.1 lib/yard/handlers/step_transform_handler.rb
yard-cucumber-2.0.0 lib/yard/handlers/step_transform_handler.rb
cucumber-in-the-yard-1.7.8 lib/yard/handlers/step_transform_handler.rb
cucumber-in-the-yard-1.7.7 lib/yard/handlers/step_transform_handler.rb
cucumber-in-the-yard-1.7.6 lib/yard/handlers/step_transform_handler.rb
cucumber-in-the-yard-1.7.5 lib/yard/handlers/step_transform_handler.rb