class YARD::CodeObjects::StepTransformer
Attributes
constants[R]
keyword[R]
literal_value[RW]
pending[RW]
source[R]
steps[RW]
substeps[RW]
value[R]
Public Instance Methods
regex()
click to toggle source
Generate a regex with the step transformers value
# File lib/yard/code_objects/step_transformer.rb, line 28 def regex @regex ||= Regexp.new(value) end
value=(value)
click to toggle source
Set the literal value and the value of the step definition.
The literal value is as it appears in the step definition file with any constants. The value, when retrieved will attempt to replace those constants with their regex or string equivalents to hopefully match more steps and step definitions.
# File lib/yard/code_objects/step_transformer.rb, line 20 def value=(value) @literal_value ||= format_source(value) @value = format_source(value) @steps = [] end