Sha256: 04f61e6a3eeaf4b6d8df7a7207ebbbf7a1b2c0d9730cbb94e8656fc14ef19ecf

Contents?: true

Size: 1016 Bytes

Versions: 5

Compression:

Stored size: 1016 Bytes

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://xampl.com/redis-test', 'RedisTest', 'rt'],
    ]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xamplr-1.9.20 lib/xamplr/tests/redis/project-generator.rb
xamplr-1.9.18 lib/xamplr/tests/redis/project-generator.rb
xamplr-1.9.16 lib/xamplr/tests/redis/project-generator.rb
xamplr-1.9.15 lib/xamplr/tests/redis/project-generator.rb
xamplr-1.9.14 lib/xamplr/tests/redis/project-generator.rb