Class: KBuilder::Dotnet::Namespace

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dependencyObject

Returns the value of attribute dependency.



10
11
12
# File 'lib/k_builder/dotnet/namespace.rb', line 10

def dependency
  @dependency
end

#namespaceObject

Returns the value of attribute namespace.



9
10
11
# File 'lib/k_builder/dotnet/namespace.rb', line 9

def namespace
  @namespace
end