Class: YARD::CodeObjects::StepTransformer
- Inherits:
-
Base
- Object
- Base
- YARD::CodeObjects::StepTransformer
- Includes:
- Cucumber::LocationHelper
- Defined in:
- lib/yard/code_objects/step_transformer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#constants ⇒ Object
readonly
Returns the value of attribute constants.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#literal_value ⇒ Object
Returns the value of attribute literal_value.
-
#pending ⇒ Object
Returns the value of attribute pending.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#steps ⇒ Object
Returns the value of attribute steps.
-
#substeps ⇒ Object
Returns the value of attribute substeps.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#regex ⇒ Object
Generate a regex with the step transformers value.
Methods included from Cucumber::LocationHelper
#file, #line_number, #location
Instance Attribute Details
#constants ⇒ Object (readonly)
Returns the value of attribute constants.
6 7 8 |
# File 'lib/yard/code_objects/step_transformer.rb', line 6 def constants @constants end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
6 7 8 |
# File 'lib/yard/code_objects/step_transformer.rb', line 6 def keyword @keyword end |
#literal_value ⇒ Object
Returns the value of attribute literal_value.
7 8 9 |
# File 'lib/yard/code_objects/step_transformer.rb', line 7 def literal_value @literal_value end |
#pending ⇒ Object
Returns the value of attribute pending.
7 8 9 |
# File 'lib/yard/code_objects/step_transformer.rb', line 7 def pending @pending end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/yard/code_objects/step_transformer.rb', line 6 def source @source end |
#steps ⇒ Object
Returns the value of attribute steps.
7 8 9 |
# File 'lib/yard/code_objects/step_transformer.rb', line 7 def steps @steps end |
#substeps ⇒ Object
Returns the value of attribute substeps.
7 8 9 |
# File 'lib/yard/code_objects/step_transformer.rb', line 7 def substeps @substeps end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/yard/code_objects/step_transformer.rb', line 6 def value @value end |
Instance Method Details
#regex ⇒ Object
Generate a regex with the step transformers value
28 29 30 |
# File 'lib/yard/code_objects/step_transformer.rb', line 28 def regex @regex ||= Regexp.new(value) end |