class Cucumber::Core::Ast::Scenario
Attributes
background[R]
comments[R]
description[R]
keyword[R]
location[R]
raw_steps[R]
Public Class Methods
new(location, comments, tags, keyword, name, description, steps)
click to toggle source
# File lib/cucumber/core/ast/scenario.rb, line 19 def initialize(location, comments, tags, keyword, name, description, steps) @location = location @comments = comments @tags = tags @keyword = keyword @name = name @description = description @raw_steps = steps end
Public Instance Methods
children()
click to toggle source
# File lib/cucumber/core/ast/scenario.rb, line 29 def children raw_steps end
to_sexp()
click to toggle source
# File lib/cucumber/core/ast/scenario.rb, line 33 def to_sexp sexp = [:scenario, line, keyword, name] comment = comment.to_sexp sexp += [comment] if comment tags = tags.to_sexp sexp += tags if tags.any? sexp += step_invocations.to_sexp if step_invocations.any? sexp end
Private Instance Methods
description_for_visitors()
click to toggle source
# File lib/cucumber/core/ast/scenario.rb, line 45 def description_for_visitors :scenario end