Class: Source
- Inherits:
-
Object
- Object
- Source
- Defined in:
- lib/rubidity/builder.rb
Overview
rename to unit (source unit) or service or ?? - why? why not?
Instance Attribute Summary collapse
-
#contracts ⇒ Object
readonly
Returns the value of attribute contracts.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize ⇒ Source
constructor
A new instance of Source.
Constructor Details
#initialize ⇒ Source
Returns a new instance of Source.
74 75 76 |
# File 'lib/rubidity/builder.rb', line 74 def initialize @contracts = [] end |
Instance Attribute Details
#contracts ⇒ Object (readonly)
Returns the value of attribute contracts.
72 73 74 |
# File 'lib/rubidity/builder.rb', line 72 def contracts @contracts end |
Instance Method Details
#generate ⇒ Object
78 79 80 |
# File 'lib/rubidity/builder.rb', line 78 def generate CodegenClassic.generate( self ) end |