Class: Andromeda::Guides::Guide

Inherits:
Object
  • Object
show all
Includes:
Impl::To_S
Defined in:
lib/andromeda/guide.rb,
lib/andromeda/guide_track.rb

Direct Known Subclasses

LocalGuide, PoolGuide, SpawnGuide

Instance Method Summary collapse

Methods included from Impl::To_S

short_s, #to_s, #to_short_s

Instance Method Details

#pack(plan, track, was_suggested = false) ⇒ Object



10
11
12
13
# File 'lib/andromeda/guide.rb', line 10

def pack(track, was_suggested = false)
  return plan.copy if was_suggested
  if plan.frozen? then plan else plan.copy end
end

#provision(track, label, tags_in) ⇒ Object



11
12
13
14
15
16
# File 'lib/andromeda/guide_track.rb', line 11

def provision(track, label, tags_in)
  tags_out = Hash.new
  tags_out[:scope] = ::Andromeda::Atom::Region.new unless tags_in[:scope]
  tags_out[:label] = label
  tags_out
end

#track(spot, label, suggested_track = nil) ⇒ Object

Raises:

  • (NoMethodError)


6
7
8
# File 'lib/andromeda/guide.rb', line 6

def track(spot, key, suggested_track = nil)
  raise NoMethodError
end