Class: KBuilder::Dotnet::CodeBlock
- Inherits:
-
Object
- Object
- KBuilder::Dotnet::CodeBlock
- Defined in:
- lib/k_builder/dotnet/code_block.rb
Overview
Represents some code that you wish to inject into a template.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#namespaces ⇒ Object
Returns the value of attribute namespaces.
Instance Method Summary collapse
-
#initialize(code, namespaces = []) ⇒ CodeBlock
constructor
A new instance of CodeBlock.
Constructor Details
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/k_builder/dotnet/code_block.rb', line 8 def code @code end |
#namespaces ⇒ Object
Returns the value of attribute namespaces.
9 10 11 |
# File 'lib/k_builder/dotnet/code_block.rb', line 9 def namespaces @namespaces end |