Class: ChoresKit::Task
- Inherits:
-
Object
- Object
- ChoresKit::Task
- Defined in:
- lib/chores_kit/chore/task.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, args, &block) ⇒ Task
constructor
A new instance of Task.
- #method_missing(name, *args) ⇒ Object
Constructor Details
#initialize(name, args, &block) ⇒ Task
Returns a new instance of Task.
5 6 7 8 9 |
# File 'lib/chores_kit/chore/task.rb', line 5 def initialize(name, args, &block) @name = name @args = args @command = block end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
11 12 |
# File 'lib/chores_kit/chore/task.rb', line 11 def method_missing(name, *args) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/chores_kit/chore/task.rb', line 3 def name @name end |