Sha256: f7cbce0c812c91f1b9167512d8d7f4b2ca542656fb496639d499fbf635ead1c8

Contents?: true

Size: 560 Bytes

Versions: 18

Compression:

Stored size: 560 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

18 entries across 18 versions & 1 rubygems

Version Path
bake-toolkit-2.24.6 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.24.5 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.24.4 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.24.3 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.24.2 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.24.1 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.24.0 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.12 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.8 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.7 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.6 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.5 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.4 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.3 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.2 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.23.1 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.22.0 lib/bake/model/metamodel_ext.rb
bake-toolkit-2.21.0 lib/bake/model/metamodel_ext.rb