class Screenplay::Scenario
Attributes
name[R]
Public Class Methods
new(name, filename)
click to toggle source
# File lib/screenplay/scenario.rb, line 20 def initialize(name, filename) @name = name @actions = YAML.load_file(filename) @actions.symbolize_keys! end
Public Instance Methods
each() { |actor, data| ... }
click to toggle source
# File lib/screenplay/scenario.rb, line 26 def each @actions.each { | action | next if action.nil? action = { action => {} } if action.is_a?(String) actor = action.keys[0] data = action[actor] || {} yield actor, data } end
size()
click to toggle source
# File lib/screenplay/scenario.rb, line 36 def size @actions.size end