Sha256: 0c92b905b6bb4ca51ba8b686d8dea84acf762180b1817f469e22ccf6819b493d

Contents?: true

Size: 1.11 KB

Versions: 13

Compression:

Stored size: 1.11 KB

Contents

class ProjectGenerator

  def print_options
    # return an array containing any (or none) of:
    #    :schema    -- a schema-like xml representation of the generated code
    #    :graphml   -- a graphml file describing the class model (compatible with yEd)
    #    :yuml      -- a yuml file that represents a simplified class model (compatible with yUML)

    [ :yuml ]
    []
  end

  def directory
    # return the path name to the generator's output directory
    File.join(%w{ . xampl-generated-code })
  end

  def resolve_namespaces
    # any array of arrays
    # each sub-array:
    #    0: a string or an array of strings, containing xml namespaces found
    #       in the example xml files an empty string is the default namespace
    #    1: a ruby Module name (get the character cases right)
    #    2: a namespace prefix used when writing xml, optional. A generated
    #       prefix will be used otherwise.

    [
            ['http://soldierofcode.com/ivorydocs/docmodel', 'OADocModel', 'oadocmodel_ns1'],
            ['http://soldierofcode.com/ivorydocs', 'IvoryDocsModel', 'ivorydocsmodel_ns1'],
    ]
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
xamplr-1.9.20 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.18 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.16 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.15 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.14 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.13 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.12 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.11 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.10 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.9 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.8 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.7 regression/require-within-generated-code/project-generator.rb
xamplr-1.9.6 regression/require-within-generated-code/project-generator.rb