Class: RGen::ModelBuilder::ReferenceResolver::ToplevelNamespace
- Inherits:
-
Object
- Object
- RGen::ModelBuilder::ReferenceResolver::ToplevelNamespace
- Defined in:
- lib/rgen/model_builder/reference_resolver.rb
Instance Method Summary collapse
- #elements ⇒ Object
-
#initialize(ns) ⇒ ToplevelNamespace
constructor
A new instance of ToplevelNamespace.
Constructor Details
#initialize(ns) ⇒ ToplevelNamespace
Returns a new instance of ToplevelNamespace.
14 15 16 17 |
# File 'lib/rgen/model_builder/reference_resolver.rb', line 14 def initialize(ns) raise "Namespace must be an Enumerable" unless ns.is_a?(Enumerable) @ns = ns end |
Instance Method Details
#elements ⇒ Object
18 19 20 |
# File 'lib/rgen/model_builder/reference_resolver.rb', line 18 def elements @ns end |