Class: Charming::Tasks::Task
- Inherits:
-
Data
- Object
- Data
- Charming::Tasks::Task
- Defined in:
- lib/charming/tasks/task.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block
5 6 7 |
# File 'lib/charming/tasks/task.rb', line 5 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/charming/tasks/task.rb', line 5 def name @name end |
Instance Method Details
#call ⇒ Object
6 |
# File 'lib/charming/tasks/task.rb', line 6 def call = block.call |