Sha256: 7f2f6a1ec8c86ce4be794ed30e957d1b609e4c4b92e4af4c21816ceb1855a1c8

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

class ProjectGenerator

#  def directory
#    File.join(%w{ . xampl_generated_code })
#  end
#
#  def filenames
#    Dir.glob("./xml/**/*.xml")
#  end
#
#  def print_base_filename
#    File.join(%w{ . generated })
#  end
#
#  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)
#
#    # [:schema, :graphml, :yuml]
#    []
#  end
#
#  def persisted_attributes
#    %w{ pid }
#  end
#
#  def indexed_attributes
#    %w{ id }
#  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.

    #[]

    [
            [ '', 'Example1']
    ]


  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xamplr-1.3.15 docs/intro/project-generator.rb