Class: Stories::Story

Inherits:
Object
  • Object
show all
Defined in:
lib/stories/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Story

Returns a new instance of Story.



57
58
59
60
# File 'lib/stories/runner.rb', line 57

def initialize(name)
  @name = name
  @scenarios = []
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



55
56
57
# File 'lib/stories/runner.rb', line 55

def name
  @name
end

#scenariosObject

Returns the value of attribute scenarios.



55
56
57
# File 'lib/stories/runner.rb', line 55

def scenarios
  @scenarios
end