Sha256: 0910c7eccfd71f8bf50c762acfe85592a37f441206cd46c7ebc975b84fd10ad0
Contents?: true
Size: 706 Bytes
Versions: 5
Compression:
Stored size: 706 Bytes
Contents
module YARD::CodeObjects::Cucumber class Step < Base attr_accessor :comments, :definition, :examples, :keyword, :scenario, :table, :text, :transforms, :value def initialize(namespace,name) super(namespace,name.to_s.strip) @comments = @definition = @description = @keyword = @table = @text = @value = nil @examples = {} @transforms = [] end def has_table? !@table.nil? end def has_text? !@text.nil? end def definition=(stepdef) @definition = stepdef unless stepdef.steps.map(&:files).include?(files) stepdef.steps << self end end def transformed? !@transforms.empty? end end end
Version data entries
5 entries across 5 versions & 2 rubygems