Sha256: a719b2141b326d029579a5681b4ccc16c334ad0a12779835180873a21e0cd8fc
Contents?: true
Size: 706 Bytes
Versions: 32
Compression:
Stored size: 706 Bytes
Contents
module Cucumber module Ast # Holds the value of a comment parsed from a feature file: # # # Lorem ipsum # # dolor sit amet # # This gets parsed into a Comment with value <tt>"# Lorem ipsum\n# dolor sit amet\n"</tt> # class Comment #:nodoc: def initialize(value) @value = value end def empty? @value.nil? || @value == "" end def accept(visitor) return if $cucumber_interrupted @value.strip.split("\n").each do |line| visitor.visit_comment_line(line.strip) end end def to_sexp (@value.nil? || @value == '') ? nil : [:comment, @value] end end end end
Version data entries
32 entries across 32 versions & 5 rubygems