Class: YARD::CodeObjects::Placeholder
- Inherits:
-
StepTransformer
- Object
- Base
- StepTransformer
- YARD::CodeObjects::Placeholder
- Defined in:
- lib/yard/code_objects/placeholder.rb
Constant Summary collapse
- CONSTANT_PATTERN =
/#\{\s*([^}]+)\s*\}/
- DEFAULT_PLACE_HOLDER_REGEXP_STRING =
"['\"]?((?:(?<=\")[^\"]*)(?=\")|(?:(?<=')[^']*(?='))|(?<!['\"])[[:alnum:]_-]+(?!['\"]))['\"]?"
Instance Attribute Summary
Attributes inherited from StepTransformer
#constants, #keyword, #literal_value, #pending, #source, #steps, #substeps
Instance Method Summary collapse
Methods inherited from StepTransformer
Methods included from Cucumber::LocationHelper
#file, #line_number, #location
Instance Method Details
#value ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/yard/code_objects/placeholder.rb', line 8 def value return if @value.nil? unless @processed @processed = true loop do break if substitute_constants.nil? end end @value end |