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