Sha256: 18fcf4ad275bc635f98d3c99bd74a64b2927876f72e204b67d231bc83a824c98
Contents?: true
Size: 656 Bytes
Versions: 26
Compression:
Stored size: 656 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 stepdef.steps << self end def transformed? !@transforms.empty? end end end
Version data entries
26 entries across 26 versions & 2 rubygems