Class: BlackCompany::Task
- Inherits:
-
Object
- Object
- BlackCompany::Task
- Defined in:
- lib/black_company/task.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(content, &block) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(content, &block) ⇒ Task
Returns a new instance of Task.
5 6 7 8 |
# File 'lib/black_company/task.rb', line 5 def initialize(content, &block) @content = content @proc = block end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/black_company/task.rb', line 3 def content @content end |
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
3 4 5 |
# File 'lib/black_company/task.rb', line 3 def proc @proc end |