lib/nitro/part.rb in nitro-0.15.0 vs lib/nitro/part.rb in nitro-0.16.0

- old
+ new

@@ -1,24 +1,27 @@ # * George Moschovitis <gm@navel.gr> -# (c) 2004-2005 Navel, all rights reserved. -# $Id: part.rb 339 2005-04-01 14:02:14Z gmosx $ +# (c) 2005 Navel, all rights reserved. +# $Id: part.rb 20 2005-04-15 15:18:36Z gmosx $ # UNDER CONSTRUCTION, dont use yet! require 'glue/attribute' -module N +module Nitro class Part - cattr_accessor :parts_root, "/home/gmosx/navel/gen/parts" + cattr_accessor :parts_root, "/home/gmosx/private/plasma/parts" end end module Kernel def require_part(name) - require "#{N::Part.parts_root}/#{name}/part" + # gmosx: RDoc complains about this, so lets use an + # eval, AAAAAAAARGH! + # require "#{N::Part.parts_root}/#{name}/mount" + eval %{ require '#{Nitro::Part.parts_root}/#{name}/mount' } end end