Sha256: eece6f54f51987dcafde12848e05a9ebbf44ade5386f15776808ee5ea57abae6

Contents?: true

Size: 1.32 KB

Versions: 42

Compression:

Stored size: 1.32 KB

Contents

require 'rgen/metamodel_builder'
require 'rgen/metamodel_builder/data_types'

module Bake

  module BakeryModel
    extend RGen::MetamodelBuilder::ModuleExtension

    class ModelElement < RGen::MetamodelBuilder::MMBase
      abstract
      has_attr 'line_number', Integer do
        annotation :details => {'internal' => 'true'}
      end
      has_attr 'file_name', String do
        annotation :details => {'internal' => 'true'}
      end
    end

    class Project < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      has_attr 'config', String, :defaultValueLiteral => ""
    end
    class Exclude < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      has_attr 'config', String, :defaultValueLiteral => ""
    end
    class SubCollection < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
    end
    class Collection < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      contains_many 'project', Project, 'collection'
      contains_many 'exclude', Exclude, 'collection'
      contains_many 'collections', SubCollection, 'collection'
    end

    module Project::ClassModule
      def isFound
        @isFound ||= false 
      end
      def found
        @isFound = true 
      end
    end

  end

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
bake-toolkit-2.20.4 lib/bakery/model/metamodel.rb
bake-toolkit-2.20.3 lib/bakery/model/metamodel.rb
bake-toolkit-2.20.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.20.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.19.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.19.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.19.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.18.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.17.4 lib/bakery/model/metamodel.rb
bake-toolkit-2.17.3 lib/bakery/model/metamodel.rb
bake-toolkit-2.17.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.17.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.16.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.15.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.14.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.13.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.13.0 lib/bakery/model/metamodel.rb
bake-toolkit-2.12.2 lib/bakery/model/metamodel.rb
bake-toolkit-2.12.1 lib/bakery/model/metamodel.rb
bake-toolkit-2.12.0 lib/bakery/model/metamodel.rb