Class: Spec::Story::Scenario
- Defined in:
- lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#name ⇒ Object
Returns the value of attribute name.
-
#story ⇒ Object
Returns the value of attribute story.
Instance Method Summary collapse
-
#initialize(story, name, &body) ⇒ Scenario
constructor
A new instance of Scenario.
Constructor Details
#initialize(story, name, &body) ⇒ Scenario
Returns a new instance of Scenario.
7 8 9 10 11 |
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 7 def initialize(story, name, &body) @story = story @name = name @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 5 def body @body end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 5 def name @name end |
#story ⇒ Object
Returns the value of attribute story.
5 6 7 |
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 5 def story @story end |