Class: YARD::CodeObjects::StepTransformer

Inherits:
Base
  • Object
show all
Includes:
Cucumber::LocationHelper
Defined in:
lib/yard/code_objects/step_transformer.rb

Direct Known Subclasses

Placeholder, StepDefinition

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Cucumber::LocationHelper

#file, #line_number, #location

Instance Attribute Details

#constantsObject (readonly)

Returns the value of attribute constants.



6
7
8
# File 'lib/yard/code_objects/step_transformer.rb', line 6

def constants
  @constants
end

#keywordObject (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_valueObject

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

#pendingObject

Returns the value of attribute pending.



7
8
9
# File 'lib/yard/code_objects/step_transformer.rb', line 7

def pending
  @pending
end

#sourceObject (readonly)

Returns the value of attribute source.



6
7
8
# File 'lib/yard/code_objects/step_transformer.rb', line 6

def source
  @source
end

#stepsObject

Returns the value of attribute steps.



7
8
9
# File 'lib/yard/code_objects/step_transformer.rb', line 7

def steps
  @steps
end

#substepsObject

Returns the value of attribute substeps.



7
8
9
# File 'lib/yard/code_objects/step_transformer.rb', line 7

def substeps
  @substeps
end

#valueObject

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

#regexObject

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