Class: Spec::Story::StoryBuilder
- Defined in:
- lib/gems/rspec-1.1.11/spec/spec/story/builders.rb
Instance Method Summary collapse
-
#initialize ⇒ StoryBuilder
constructor
A new instance of StoryBuilder.
- #narrative(value) ⇒ Object
- #title(value) ⇒ Object
- #to_story(&block) ⇒ Object
Constructor Details
#initialize ⇒ StoryBuilder
Returns a new instance of StoryBuilder.
4 5 6 7 |
# File 'lib/gems/rspec-1.1.11/spec/spec/story/builders.rb', line 4 def initialize @title = 'a story' @narrative = 'narrative' end |
Instance Method Details
#narrative(value) ⇒ Object
14 15 16 17 |
# File 'lib/gems/rspec-1.1.11/spec/spec/story/builders.rb', line 14 def narrative(value) @narrative = value self end |
#title(value) ⇒ Object
9 10 11 12 |
# File 'lib/gems/rspec-1.1.11/spec/spec/story/builders.rb', line 9 def title(value) @title = value self end |