Class: ChoresKit::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/chores_kit/chore/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/chores_kit/chore/task.rb', line 3

def name
  @name
end