module Bakery

Copyright © 2013 Nathan Currier

Use, modification, and distribution are all subject to the Boost Software License, Version 1.0. (See the accompanying file LICENSE.md or at rideliner.tk/LICENSE.html).

<description>

Copyright © 2013 Nathan Currier

Use, modification, and distribution are all subject to the Boost Software License, Version 1.0. (See the accompanying file LICENSE.md or at rideliner.tk/LICENSE.html).

<description>

Copyright © 2013 Nathan Currier

Use, modification, and distribution are all subject to the Boost Software License, Version 1.0. (See the accompanying file LICENSE.md or at rideliner.tk/LICENSE.html).

<description>

Copyright © 2013 Nathan Currier

Use, modification, and distribution are all subject to the Boost Software License, Version 1.0. (See the accompanying file LICENSE.md or at rideliner.tk/LICENSE.html).

<description>

Copyright © 2013 Nathan Currier

Use, modification, and distribution are all subject to the Boost Software License, Version 1.0. (See the accompanying file LICENSE.md or at rideliner.tk/LICENSE.html).

<description>

Constants

INGREDIENTS_DETAIL_DIR
INGREDIENTS_DIR
LIB_DIR
ROOT_DIR
VERSION

Public Class Methods

[](symbol) click to toggle source
# File lib/bakery/detail/icing.rb, line 20
def [] symbol
  if icing = getCake.icing[symbol]
    icing
  else
    @globalIcing[symbol]
  end
end
addCake() click to toggle source
# File lib/bakery/cake.rb, line 36
def addCake
  cake = Cake.new @currentCake

  Bakery::Log.debug "entering project: #{cake.root}"

  @currentCake = cake
end
getCake() click to toggle source
# File lib/bakery/cake.rb, line 50
def getCake
  @currentCake
end
getLatestMarkerOfType(type) click to toggle source
# File lib/bakery/detail/marker.rb, line 29
def getLatestMarkerOfType type
  @markers.reverse_each { |marker|
    if marker.is_a? type
      return marker
    end
  }

  nil
end
icing() click to toggle source
# File lib/bakery/detail/icing.rb, line 16
def icing
  @globalIcing
end
markers() click to toggle source
# File lib/bakery/detail/marker.rb, line 39
def markers
  @markers
end
removeCake() click to toggle source
# File lib/bakery/cake.rb, line 44
def removeCake
  Bakery::Log.debug "leaving project: #{@currentCake.root}"

  @currentCake = @currentCake.parent
end
removeMarkerLayerFromStack(path) click to toggle source
# File lib/bakery/detail/marker.rb, line 16
def removeMarkerLayerFromStack path
  # remove all markers that are in the current directory
  @markers.select! { |marker|
    removed = !marker.getPath.start_with?(path)

    if removed
      Bakery::Log.debug "unset #{marker.class}: #{marker.getPath}"
    end

    removed
  }
end