Class: Plantae::Scenario

Inherits:
Object
  • Object
show all
Defined in:
lib/plantae/scenario.rb

Overview

Represents a scenario

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, &block) ⇒ Scenario

Returns a new instance of Scenario.

Parameters:

  • name (String)

    scenario name

  • block (Proc)

    scenario to execute



10
11
12
13
# File 'lib/plantae/scenario.rb', line 10

def initialize(name, &block)
  @name   = name
  @block  = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



6
7
8
# File 'lib/plantae/scenario.rb', line 6

def block
  @block
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/plantae/scenario.rb', line 6

def name
  @name
end