Class: KBuilder::Dotnet::Namespace
- Inherits:
-
Object
- Object
- KBuilder::Dotnet::Namespace
- Defined in:
- lib/k_builder/dotnet/namespace.rb
Overview
Represents the namespaces that code relies on and the dependency that this namespace may belong to
Instance Attribute Summary collapse
-
#dependency ⇒ Object
Returns the value of attribute dependency.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#initialize(namespace, dependency) ⇒ Namespace
constructor
A new instance of Namespace.
Constructor Details
#initialize(namespace, dependency) ⇒ Namespace
Returns a new instance of Namespace.
12 13 14 15 16 17 |
# File 'lib/k_builder/dotnet/namespace.rb', line 12 def initialize(namespace, dependency) @namespace = namespace @dependency = dependency raise KBuilder::Dotnet::Error, 'Namespace is required' if namespace.nil? || namespace.to_s == '' end |
Instance Attribute Details
#dependency ⇒ Object
Returns the value of attribute dependency.
10 11 12 |
# File 'lib/k_builder/dotnet/namespace.rb', line 10 def dependency @dependency end |
#namespace ⇒ Object
Returns the value of attribute namespace.
9 10 11 |
# File 'lib/k_builder/dotnet/namespace.rb', line 9 def namespace @namespace end |