Class: Shale::Schema::Compiler::XMLComplex Private
- Defined in:
- lib/shale/schema/compiler/xml_complex.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class representing Shale’s XML complex type
Instance Attribute Summary collapse
-
#namespace ⇒ String
readonly
private
Return namespace URI.
-
#prefix ⇒ String
readonly
private
Return namespace prefix.
-
#root ⇒ String
private
Accessor for root attribute.
Attributes inherited from Complex
Instance Method Summary collapse
-
#initialize(id, root_name, prefix, namespace, package) ⇒ XMLComplex
constructor
private
Initialize object.
Methods inherited from Complex
#add_property, #file_name, #modules, #name, #references, #relative_path
Constructor Details
#initialize(id, root_name, prefix, namespace, package) ⇒ XMLComplex
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize object
42 43 44 45 46 47 |
# File 'lib/shale/schema/compiler/xml_complex.rb', line 42 def initialize(id, root_name, prefix, namespace, package) super(id, root_name, package) @root = root_name @prefix = prefix @namespace = namespace end |
Instance Attribute Details
#namespace ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return namespace URI
31 32 33 |
# File 'lib/shale/schema/compiler/xml_complex.rb', line 31 def namespace @namespace end |
#prefix ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return namespace prefix
24 25 26 |
# File 'lib/shale/schema/compiler/xml_complex.rb', line 24 def prefix @prefix end |