lib/xcake/dependency.rb in xcake-0.6.19 vs lib/xcake/dependency.rb in xcake-0.6.20

- old
+ new

@@ -1,24 +1,19 @@ require 'xcodeproj' -#TODO: Figure out a more robust Dependency system -# - Needs to handle subclass of subclass..... -# - Needs to have better mixin hiearchy -# - Implement a pre-dependency (Something that this needs to happen in front of) - module Xcake module Dependency + def self.included(base) + base.extend ClassMethods + end + module ClassMethods def name self end def dependencies [] end - end - - def self.included(klass) - klass.extend ClassMethods # Somewhat controversial end end end