class Cucumber::Core::Ast::Feature
Represents the root node of a parsed feature.
def children
def children [background] + @feature_elements end
def description_for_visitors
def description_for_visitors :feature end
def initialize(*)
def initialize(*) super end
def short_name
def short_name first_line = name.split(/\n/)[0] if first_line =~ /#{language.keywords('feature')}:(.*)/ $1.strip else first_line end end
def to_sexp
def to_sexp sexp = [:feature, file, name] comment = @comment.to_sexp sexp += [comment] if comment tags = @tags.to_sexp sexp += tags if tags.any? sexp += [@background.to_sexp] if @background sexp += @feature_elements.map{|fe| fe.to_sexp} sexp end