Class: Route

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/orochi/templates/models/route.rb

Instance Method Summary collapse

Instance Method Details

#each_step(&block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/generators/orochi/templates/models/route.rb', line 4

def each_step(&block)
  self.legs.each do |leg|
    leg.steps.each do |step|
      yield step
    end
  end
end