Sha256: 379058d94f6df96ca46a01a3917c2303eed79a5029ff65aa3aa197931fa18822

Contents?: true

Size: 605 Bytes

Versions: 10

Compression:

Stored size: 605 Bytes

Contents

require 'bake/model/metamodel'
require 'common/ext/file'

module Bake
  module Metamodel

      module ModelElement::ClassModule
        def get_project_dir
          comp = self
          while comp.respond_to?"parent"
            comp = comp.parent
          end
          ::File.dirname(comp.file_name)
        end
      end
      
      module BaseConfig_INTERNAL::ClassModule
        def qname
          @qname ||= parent.name + "," + name
        end
        def dependency
          libStuff.find_all { |l| Dependency === l }
        end
      end      
      
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bake-toolkit-2.20.4 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.20.3 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.20.2 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.20.1 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.19.2 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.19.1 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.19.0 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.18.0 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.17.4 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.17.3 lib/bake/model/metamodel_ext.rb