class YARD::CodeObjects::Cucumber::Step
Attributes
comments[RW]
definition[RW]
examples[RW]
keyword[RW]
placeholders[RW]
scenario[RW]
table[RW]
text[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 = {} @placeholders = [] 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 stepdef.placeholders.each do |placeholder| placeholders << placeholder placeholder.steps << self end 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 42 def transformed? !@placeholders.empty? end