Class: Journeyviz::Journey

Inherits:
Object
  • Object
show all
Includes:
Graphable, NodeGroup
Defined in:
lib/journeyviz/journey.rb

Instance Method Summary collapse

Methods included from Graphable

#graph

Methods included from NodeGroup

#block, #blocks, #find_screen, #inputs, #outputs, #screen, #screens

Constructor Details

#initializeJourney

Returns a new instance of Journey.



12
13
14
# File 'lib/journeyviz/journey.rb', line 12

def initialize
  @blocks = []
end

Instance Method Details

#validate!Object



16
17
18
19
20
# File 'lib/journeyviz/journey.rb', line 16

def validate!
  screens.each do |screen|
    screen.actions.each { |action| validate_action(action) }
  end
end