Class: Protod::RakeTask::Builder
- Inherits:
-
Object
- Object
- Protod::RakeTask::Builder
- Defined in:
- lib/protod/rake_task.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(&body) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(&body) ⇒ Builder
Returns a new instance of Builder.
9 10 11 |
# File 'lib/protod/rake_task.rb', line 9 def initialize(&body) body&.call(self) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/protod/rake_task.rb', line 7 def name @name end |