class YARD::CodeObjects::Lucid::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/lucid/step.rb, line 5 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/lucid/step.rb, line 20 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/lucid/step.rb, line 12 def has_table? !@table.nil? end
has_text?()
click to toggle source
# File lib/yard/code_objects/lucid/step.rb, line 16 def has_text? !@text.nil? end
transformed?()
click to toggle source
# File lib/yard/code_objects/lucid/step.rb, line 28 def transformed? !@transforms.empty? end