Class: ProjectGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/xamplr/tests/redis/project-generator.rb

Instance Method Summary collapse

Instance Method Details

#directoryObject



13
14
15
16
# File 'lib/xamplr/tests/redis/project-generator.rb', line 13

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


3
4
5
6
7
8
9
10
11
# File 'lib/xamplr/tests/redis/project-generator.rb', line 3

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

#resolve_namespacesObject



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/xamplr/tests/redis/project-generator.rb', line 18

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