Module: Milk

Defined in:
lib/milk.rb,
lib/milk/page.rb,
lib/milk/field.rb,
lib/milk/component.rb,
lib/milk/application.rb

Overview

Set up our main namespace with autoloaded parts

Defined Under Namespace

Modules: Components, Fields Classes: Application, Component, Field, Page, PageNotFoundError

Constant Summary collapse

MILK_DIR =

Setup some nice constants

File.dirname(__FILE__)
VERSION =
open(MILK_DIR+"/../VERSION").read

Class Method Summary collapse

Class Method Details

.get_milk_rootObject



11
12
13
14
15
# File 'lib/milk.rb', line 11

def self.get_milk_root
  c = caller(1).collect { |line| line.split(':').first }
  c = c.select { |line| line !~ /\/gems\// }
  File.absolute_path(File.dirname(c.first))
end