Class: YARD::Handlers::Ruby::StepTransformHandler
- Inherits:
-
Base
- Object
- Base
- YARD::Handlers::Ruby::StepTransformHandler
- Defined in:
- lib/yard/handlers/step_transform_handler.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.generate_unique_id ⇒ Object
40 41 42 |
# File 'lib/yard/handlers/step_transform_handler.rb', line 40 def self.generate_unique_id @step_transformer_count = @step_transformer_count.to_i + 1 end |
Instance Method Details
#step_transform_namespace ⇒ Object
27 28 29 |
# File 'lib/yard/handlers/step_transform_handler.rb', line 27 def step_transform_namespace YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE end |
#step_transformer_name ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/yard/handlers/step_transform_handler.rb', line 31 def step_transformer_name # If the owner is a constant then we get the name of the constant so that the reference from the constant will work if (owner.is_a?(YARD::CodeObjects::ConstantObject)) owner.name else "step_transform#{self.class.generate_unique_id}" end end |