class YARD::CodeObjects::Cucumber::Step

Attributes

comments[RW]
definition[RW]
examples[RW]
keyword[RW]
scenario[RW]
table[RW]
text[RW]
transforms[RW]
value[RW]

Public Class Methods

new(namespace, name) click to toggle source
Calls superclass method
# File lib/yard/code_objects/cucumber/step.rb, line 14
def initialize(namespace, name)
  super(namespace, name.to_s.strip)
  @comments = @definition = @description = @keyword = @table = @text = @value = nil
  @examples = {}
  @transforms = []
end

Public Instance Methods

definition=(stepdef) click to toggle source
# File lib/yard/code_objects/cucumber/step.rb, line 29
def definition=(stepdef)
  @definition = stepdef

  unless stepdef.steps.map(&:files).include?(files)
    stepdef.steps << self
  end
end
has_table?() click to toggle source
# File lib/yard/code_objects/cucumber/step.rb, line 21
def has_table?
  !@table.nil?
end
has_text?() click to toggle source
# File lib/yard/code_objects/cucumber/step.rb, line 25
def has_text?
  !@text.nil?
end
transformed?() click to toggle source
# File lib/yard/code_objects/cucumber/step.rb, line 37
def transformed?
  !@transforms.empty?
end