Sha256: 2219ab1b17630cdef7e1deaa731004dc432fa9073172ca2aaa18781a21bb3d36

Contents?: true

Size: 872 Bytes

Versions: 1

Compression:

Stored size: 872 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 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/hobbies', 'Hobbies', 'h']
    ]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xamplr-1.3.15 examples/hobbies/project-generator.rb